|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.torque.generator.configuration.DirectoryConfigurationProvider
public class DirectoryConfigurationProvider
Provides InputStreams to read the configuration from a directory.
Constructor Summary | |
---|---|
DirectoryConfigurationProvider(ProjectPaths projectPaths,
TorqueGeneratorPaths configurationPaths)
Constructor. |
Method Summary | |
---|---|
InputStream |
getControlConfigurationInputStream()
Creates a reader to access the control configuration. |
String |
getControlConfigurationLocation()
Returns the location of the control configuration as human readable String for debugging and error tracking purposes. |
InputStream |
getOptionsInputStream(String name)
Creates a reader to access an options file. |
InputStream |
getOutletConfigurationInputStream(String name)
Creates a reader to access the configuration for one outlet. |
Collection<String> |
getOutletConfigurationNames()
Returns a list of all found outlet configuration files in the generation unit. |
InputStream |
getResourceInputStream(String name)
Creates a reader to access a resource file. |
InputStream |
getTemplateInputStream(String name)
Creates a reader to access a template. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DirectoryConfigurationProvider(ProjectPaths projectPaths, TorqueGeneratorPaths configurationPaths)
projectPaths
- the paths needed to interact with the enclosing
project, not null.configurationPaths
- The internal directory structure of the
generator files, not null.
NullPointerException
- if projectPaths or configurationPaths
are null.Method Detail |
---|
public InputStream getControlConfigurationInputStream() throws ConfigurationException
ConfigurationProvider
getControlConfigurationInputStream
in interface ConfigurationProvider
ConfigurationException
- if the reader can not be created.public String getControlConfigurationLocation() throws ConfigurationException
ConfigurationProvider
getControlConfigurationLocation
in interface ConfigurationProvider
ConfigurationException
- if the location name can not be created.public InputStream getTemplateInputStream(String name) throws ConfigurationException
ConfigurationProvider
getTemplateInputStream
in interface ConfigurationProvider
name
- the name (==path to) of the template.
ConfigurationException
- if the reader can not be created.public InputStream getOutletConfigurationInputStream(String name) throws ConfigurationException
ConfigurationProvider
getOutletConfigurationInputStream
in interface ConfigurationProvider
name
- the name (==path to) of the outlet configuration.
ConfigurationException
- if the reader can not be created.public InputStream getResourceInputStream(String name) throws ConfigurationException
ConfigurationProvider
getResourceInputStream
in interface ConfigurationProvider
name
- the path to of the resource file.
ConfigurationException
- if the reader can not be created.public InputStream getOptionsInputStream(String name) throws ConfigurationException
ConfigurationProvider
getOptionsInputStream
in interface ConfigurationProvider
name
- the name (==path to) of the options file.
ConfigurationException
- if the reader can not be created.public Collection<String> getOutletConfigurationNames() throws ConfigurationException
ConfigurationProvider
getOutletConfigurationNames
in interface ConfigurationProvider
ConfigurationException
- if the configuration can not be read.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |