Klasse JarConfigurationProvider
java.lang.Object
org.apache.torque.generator.configuration.AbstractConfigurationProvider
org.apache.torque.generator.configuration.JarConfigurationProvider
- Alle implementierten Schnittstellen:
ConfigurationProvider
Provides InputStreams to read a configuration of a unit of generation from a
jar file.
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungJarConfigurationProvider
(ProjectPaths projectPaths, TorqueGeneratorPaths configurationPaths) Constructor. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungReturns the location of the control configuration as human readable String for debugging and error tracking purposes.protected InputStream
getInputStream
(String name, String directory, String description) 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
-
JarConfigurationProvider
public JarConfigurationProvider(ProjectPaths projectPaths, TorqueGeneratorPaths configurationPaths) throws ConfigurationException Constructor.- Parameter:
projectPaths
- the paths needed to interact with the enclosing project, not null.configurationPaths
- The internal directory structure of the generator configuration files, not null.- Löst aus:
NullPointerException
- if projectPaths or configurationPaths are null.ConfigurationException
- if the jar file can not be accessed.
-
-
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.
- Löst aus:
ConfigurationException
- if the location name can not be created.
-
getInputStream
protected InputStream getInputStream(String name, String directory, String description) throws ConfigurationException - Angegeben von:
getInputStream
in KlasseAbstractConfigurationProvider
- Parameter:
name
- input stream namedirectory
- locationdescription
- 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:
-