public class DirectoryConfigurationProvider extends AbstractConfigurationProvider
Constructor and Description |
---|
DirectoryConfigurationProvider(ProjectPaths projectPaths,
TorqueGeneratorPaths configurationPaths)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getControlConfigurationLocation()
Returns 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) |
Collection<String> |
getOutletConfigurationNames()
Returns a list of all found outlet configuration files in the
generation unit.
|
Collection<String> |
getTemplateNames()
Lists all available template names.
|
getControlConfigurationInputStream, getOptionsInputStream, getOutletConfigurationInputStream, getResourceInputStream, getTemplateInputStream
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.public String getControlConfigurationLocation() throws ConfigurationException
ConfigurationProvider
ConfigurationException
- if the location name can not be created.protected InputStream getInputStream(String name, String directory, String description) throws ConfigurationException
getInputStream
in class AbstractConfigurationProvider
name
- input stream namedirectory
- locationdescription
- describes the fileConfigurationException
- if unable to processpublic Collection<String> getOutletConfigurationNames() throws ConfigurationException
ConfigurationProvider
ConfigurationException
- if the configuration can not be read.public Collection<String> getTemplateNames() throws ConfigurationException
ConfigurationProvider
ConfigurationException
- if the template names
cannot be determined.ConfigurationProvider.getTemplateNames()
Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.