public class PropertiesConfigManager extends java.lang.Object implements ConfigManager
| Constructor and Description |
|---|
PropertiesConfigManager()
Creates instanc of PropertiesConfigManager with the default config file
location ./config/drx.properties
|
PropertiesConfigManager(java.lang.String configFileLocation)
Creates instance of the PropertiesConfigManager with the properties file
read from the configFileLocations
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
exists(java.lang.String key) |
java.lang.String |
getConfigValue(java.lang.String key) |
void |
setConfigValue(java.lang.String key,
java.lang.String value) |
void |
setConfigValue(java.lang.String key,
java.lang.String value,
boolean commit) |
public PropertiesConfigManager()
public PropertiesConfigManager(java.lang.String configFileLocation)
configFileLocation - the location to read the Properties file from.public java.lang.String getConfigValue(java.lang.String key)
getConfigValue in interface ConfigManagerpublic boolean exists(java.lang.String key)
exists in interface ConfigManagerpublic void setConfigValue(java.lang.String key,
java.lang.String value)
setConfigValue in interface ConfigManagerpublic void setConfigValue(java.lang.String key,
java.lang.String value,
boolean commit)
setConfigValue in interface ConfigManager