public class SimpleConfigurationFactory extends java.lang.Object implements ConfigurationFactory
Constructor and Description |
---|
SimpleConfigurationFactory() |
Modifier and Type | Method and Description |
---|---|
Configuration |
getConfiguration(org.jdom2.Element e) |
protected java.util.List<java.lang.String> |
getFiles(java.lang.String baseFile,
java.lang.String environmnents) |
protected void |
processFile(java.util.Properties props,
java.lang.String baseFile,
boolean isEnv) |
protected void |
processProperty(java.util.Properties props,
java.lang.String name,
java.lang.String value) |
protected boolean |
readPropertyFile(java.util.Properties props,
java.lang.String fileName) |
protected boolean |
readYAML(java.util.Properties props,
java.lang.String fileName) |
protected boolean |
readYamlFile(java.util.Properties props,
java.lang.String fileName) |
public Configuration getConfiguration(org.jdom2.Element e) throws ConfigurationException
getConfiguration
in interface ConfigurationFactory
ConfigurationException
protected void processProperty(java.util.Properties props, java.lang.String name, java.lang.String value)
protected void processFile(java.util.Properties props, java.lang.String baseFile, boolean isEnv) throws ConfigurationException
ConfigurationException
protected java.util.List<java.lang.String> getFiles(java.lang.String baseFile, java.lang.String environmnents)
protected boolean readYamlFile(java.util.Properties props, java.lang.String fileName) throws ConfigurationException
ConfigurationException
protected boolean readPropertyFile(java.util.Properties props, java.lang.String fileName) throws java.io.IOException
java.io.IOException
protected boolean readYAML(java.util.Properties props, java.lang.String fileName) throws java.io.IOException
java.io.IOException