Klasse AbstractConfigurationProvider
java.lang.Object
org.apache.torque.generator.configuration.AbstractConfigurationProvider
- Alle implementierten Schnittstellen:
ConfigurationProvider
- Bekannte direkte Unterklassen:
ClasspathConfigurationProvider,DirectoryConfigurationProvider,JarConfigurationProvider
A base class for all ConfigurationProvider implementations.
- Version:
- $Id$
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungAbstractConfigurationProvider(TorqueGeneratorPaths configurationPaths) Constructor. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungCreates a reader to access the control configuration.protected abstract InputStreamgetInputStream(String name, String directory, String fileDescription) getOptionsInputStream(String name) Creates a reader to access an options file.Creates a reader to access the configuration for one outlet.getResourceInputStream(String name) Creates a reader to access a resource file.getTemplateInputStream(String name) Creates a reader to access a template.Von Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden org.apache.torque.generator.configuration.ConfigurationProvider
getControlConfigurationLocation, getOutletConfigurationNames, getTemplateNames
-
Konstruktordetails
-
AbstractConfigurationProvider
Constructor.- Parameter:
configurationPaths- The internal directory structure of the Torque generator configuration files, not null.- Löst aus:
NullPointerException- if configurationPaths is null.
-
-
Methodendetails
-
getControlConfigurationInputStream
Beschreibung aus Schnittstelle kopiert:ConfigurationProviderCreates a reader to access the control configuration. It is the callers responsibility to close the reader after use.- Angegeben von:
getControlConfigurationInputStreamin SchnittstelleConfigurationProvider- Gibt zurück:
- a reader to access the control configuration, never null.
- Löst aus:
ConfigurationException- if the reader can not be created.
-
getTemplateInputStream
Beschreibung aus Schnittstelle kopiert:ConfigurationProviderCreates a reader to access a template. It is the callers responsibility to close the reader after use.- Angegeben von:
getTemplateInputStreamin SchnittstelleConfigurationProvider- Parameter:
name- the name (==path to) of the template.- Gibt zurück:
- a reader to access a template, never null.
- Löst aus:
ConfigurationException- if the reader can not be created.
-
getOutletConfigurationInputStream
Beschreibung aus Schnittstelle kopiert:ConfigurationProviderCreates a reader to access the configuration for one outlet. It is the callers responsibility to close the reader after use.- Angegeben von:
getOutletConfigurationInputStreamin SchnittstelleConfigurationProvider- Parameter:
name- the name (==path to) of the outlet configuration.- Gibt zurück:
- a reader to access the outlet configuration, never null.
- Löst aus:
ConfigurationException- if the reader can not be created.
-
getResourceInputStream
Beschreibung aus Schnittstelle kopiert:ConfigurationProviderCreates a reader to access a resource file. It is the callers responsibility to close the reader after use.- Angegeben von:
getResourceInputStreamin SchnittstelleConfigurationProvider- Parameter:
name- the path to of the resource file.- Gibt zurück:
- a reader to access the options file, never null.
- Löst aus:
ConfigurationException- if the reader can not be created.
-
getOptionsInputStream
Beschreibung aus Schnittstelle kopiert:ConfigurationProviderCreates a reader to access an options file. It is the callers responsibility to close the reader after use.- Angegeben von:
getOptionsInputStreamin SchnittstelleConfigurationProvider- Parameter:
name- the name (==path to) of the options file.- Gibt zurück:
- a reader to access the options file, never null.
- Löst aus:
ConfigurationException- if the reader can not be created.
-
getInputStream
protected abstract InputStream getInputStream(String name, String directory, String fileDescription) throws ConfigurationException - Parameter:
name- input stream namedirectory- locationfileDescription- describes the file- Gibt zurück:
- an InputStream
- Löst aus:
ConfigurationException- if unable to process
-