|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.torque.generator.configuration.AbstractConfigurationProvider
public abstract class AbstractConfigurationProvider
A base class for all ConfigurationProvider implementations.
| Constructor Summary | |
|---|---|
AbstractConfigurationProvider(TorqueGeneratorPaths configurationPaths)
Constructor. |
|
| Method Summary | |
|---|---|
InputStream |
getControlConfigurationInputStream()
Creates a reader to access the control configuration. |
protected abstract InputStream |
getInputStream(String name,
String directory,
String fileDescription)
|
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. |
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 |
| Methods inherited from interface org.apache.torque.generator.configuration.ConfigurationProvider |
|---|
getControlConfigurationLocation, getOutletConfigurationNames |
| Constructor Detail |
|---|
public AbstractConfigurationProvider(TorqueGeneratorPaths configurationPaths)
configurationPaths - The internal directory structure of the
Torque generator configuration files, not null.
NullPointerException - if configurationPaths is null.| Method Detail |
|---|
public InputStream getControlConfigurationInputStream()
throws ConfigurationException
ConfigurationProvider
getControlConfigurationInputStream in interface ConfigurationProviderConfigurationException - if the reader 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.
protected abstract InputStream getInputStream(String name,
String directory,
String fileDescription)
throws ConfigurationException
ConfigurationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||