|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.torque.generator.configuration.JarConfigurationProvider
public class JarConfigurationProvider
Provides InputStreams to read a configuration of a unit of generation from a jar file.
| Constructor Summary | |
|---|---|
JarConfigurationProvider(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 JarConfigurationProvider(ProjectPaths projectPaths,
TorqueGeneratorPaths configurationPaths)
throws ConfigurationException
projectPaths - the paths needed to interact with the enclosing
project, not null.configurationPaths - The internal directory structure of the
generator configuration files, not null.
NullPointerException - if projectPaths or configurationPaths
are null.
ConfigurationException - if the jar file can not be accessed.| Method Detail |
|---|
public InputStream getControlConfigurationInputStream()
throws ConfigurationException
ConfigurationProvider
getControlConfigurationInputStream in interface ConfigurationProviderConfigurationException - if the reader can not be created.
public String getControlConfigurationLocation()
throws ConfigurationException
ConfigurationProvider
getControlConfigurationLocation in interface ConfigurationProviderConfigurationException - if the location name can not be created.
public InputStream getTemplateInputStream(String name)
throws ConfigurationException
ConfigurationProvider
getTemplateInputStream in interface ConfigurationProvidername - 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 ConfigurationProvidername - 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 ConfigurationProvidername - 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 ConfigurationProvidername - 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 ConfigurationProviderConfigurationException - if the configuration can not be read.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||