Class ClasspathConfigurationProvider
java.lang.Object
org.apache.torque.generator.configuration.AbstractConfigurationProvider
org.apache.torque.generator.configuration.ClasspathConfigurationProvider
- All Implemented Interfaces:
ConfigurationProvider
Provides InputStreams to read a configuration of a unit of generation from a
jar file.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the location of the control configuration as human readable String for debugging and error tracking purposes.protected StringgetFileName(String name, String directory) protected InputStreamgetInputStream(String name, String directory, String fileDescription) Returns a list of all found outlet configuration files in the generation unit.Lists all available template names.Methods inherited from class org.apache.torque.generator.configuration.AbstractConfigurationProvider
getControlConfigurationInputStream, getOptionsInputStream, getOutletConfigurationInputStream, getResourceInputStream, getTemplateInputStream
-
Constructor Details
-
ClasspathConfigurationProvider
Constructor.- Parameters:
unitDescriptor- The description of the generation unit, not null.- Throws:
NullPointerException- if unitDescriptor is null.
-
-
Method Details
-
getControlConfigurationLocation
Description copied from interface:ConfigurationProviderReturns the location of the control configuration as human readable String for debugging and error tracking purposes.- Returns:
- the location of the control configuration, not null.
- See Also:
-
getFileName
-
getInputStream
protected InputStream getInputStream(String name, String directory, String fileDescription) throws ConfigurationException - Specified by:
getInputStreamin classAbstractConfigurationProvider- Parameters:
name- input stream namedirectory- locationfileDescription- describes the file- Returns:
- an InputStream
- Throws:
ConfigurationException- if unable to process
-
getOutletConfigurationNames
Description copied from interface:ConfigurationProviderReturns a list of all found outlet configuration files in the generation unit.- Returns:
- a list with the generation configuration files, not null.
- Throws:
ConfigurationException- if the configuration can not be read.
-
getTemplateNames
Description copied from interface:ConfigurationProviderLists all available template names.- Returns:
- a collection of all available template names, not null.
- Throws:
ConfigurationException- if the template names cannot be determined.- See Also:
-