Klasse ClasspathConfigurationProvider
java.lang.Object
org.apache.torque.generator.configuration.AbstractConfigurationProvider
org.apache.torque.generator.configuration.ClasspathConfigurationProvider
- Alle implementierten Schnittstellen:
ConfigurationProvider
Provides InputStreams to read a configuration of a unit of generation from a
jar file.
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungReturns the location of the control configuration as human readable String for debugging and error tracking purposes.protected String
getFileName
(String name, String directory) protected InputStream
getInputStream
(String name, String directory, String fileDescription) Returns a list of all found outlet configuration files in the generation unit.Lists all available template names.Von Klasse geerbte Methoden org.apache.torque.generator.configuration.AbstractConfigurationProvider
getControlConfigurationInputStream, getOptionsInputStream, getOutletConfigurationInputStream, getResourceInputStream, getTemplateInputStream
-
Konstruktordetails
-
ClasspathConfigurationProvider
Constructor.- Parameter:
unitDescriptor
- The description of the generation unit, not null.- Löst aus:
NullPointerException
- if unitDescriptor is null.
-
-
Methodendetails
-
getControlConfigurationLocation
Beschreibung aus Schnittstelle kopiert:ConfigurationProvider
Returns the location of the control configuration as human readable String for debugging and error tracking purposes.- Gibt zurück:
- the location of the control configuration, not null.
- Siehe auch:
-
getFileName
-
getInputStream
protected InputStream getInputStream(String name, String directory, String fileDescription) throws ConfigurationException - Angegeben von:
getInputStream
in KlasseAbstractConfigurationProvider
- Parameter:
name
- input stream namedirectory
- locationfileDescription
- describes the file- Gibt zurück:
- an InputStream
- Löst aus:
ConfigurationException
- if unable to process
-
getOutletConfigurationNames
Beschreibung aus Schnittstelle kopiert:ConfigurationProvider
Returns a list of all found outlet configuration files in the generation unit.- Gibt zurück:
- a list with the generation configuration files, not null.
- Löst aus:
ConfigurationException
- if the configuration can not be read.
-
getTemplateNames
Beschreibung aus Schnittstelle kopiert:ConfigurationProvider
Lists all available template names.- Gibt zurück:
- a collection of all available template names, not null.
- Löst aus:
ConfigurationException
- if the template names cannot be determined.- Siehe auch:
-