org.ow2.jasmine.vmm.agent.main.persistence
Class AbstractConfigurationGenerator

java.lang.Object
  extended by org.ow2.jasmine.vmm.agent.main.persistence.AbstractConfigurationGenerator
All Implemented Interfaces:
ConfigurationGenerator
Direct Known Subclasses:
RessourceConfigurationGenerator

public abstract class AbstractConfigurationGenerator
extends java.lang.Object
implements ConfigurationGenerator


Field Summary
protected  java.lang.String baseDir
          The base directory where files are generated.
 
Constructor Summary
AbstractConfigurationGenerator(java.lang.String baseDir)
           
 
Method Summary
 java.lang.String getBaseDir()
           
protected  org.xml.sax.ContentHandler getHandler(java.lang.String fileName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.ow2.jasmine.vmm.agent.main.persistence.ConfigurationGenerator
generate
 

Field Detail

baseDir

protected java.lang.String baseDir
The base directory where files are generated.

Constructor Detail

AbstractConfigurationGenerator

public AbstractConfigurationGenerator(java.lang.String baseDir)
                               throws ConfigurationGeneratorException
Parameters:
baseDir - The base directory where files are generated, or null to use the default base directory of the generator.
Throws:
ConfigurationGeneratorException
Method Detail

getHandler

protected org.xml.sax.ContentHandler getHandler(java.lang.String fileName)
                                         throws java.io.FileNotFoundException,
                                                javax.xml.transform.TransformerConfigurationException
Parameters:
fileName -
Returns:
a SAX handler for the given file.
Throws:
java.io.FileNotFoundException
javax.xml.transform.TransformerConfigurationException

getBaseDir

public java.lang.String getBaseDir()
Specified by:
getBaseDir in interface ConfigurationGenerator
Returns:
the base directory for generated files.


Copyright © 2011 OW2 Consortium. All Rights Reserved.