public class Configuration extends PropertyDelegateMap
| Constructor and Description |
|---|
Configuration() |
Configuration(java.lang.String prefix) |
| Modifier and Type | Method and Description |
|---|---|
void |
addLoadPath(java.lang.String directory)
Add a configuration search directory.
|
protected java.lang.String |
convertToEnvKey(java.lang.String key) |
java.lang.Integer |
getInteger(java.lang.String key)
Gets a value as an integer, returns -1 if not found
|
java.lang.String |
getString(java.lang.String key)
Gets a value as a string, returns null if not found
|
java.lang.String[] |
getStringArray(java.lang.String key)
Gets a value as a string array, returns null if not found
Array format is based on a comma delimited values
|
void |
init()
Initialize configurations
|
void |
loadProperties()
Loads up properties from the search paths.
|
clear, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, setDelegateMap, size, valuespublic Configuration()
public Configuration(java.lang.String prefix)
public void addLoadPath(java.lang.String directory)
directory - public void loadProperties()
public void init()
protected java.lang.String convertToEnvKey(java.lang.String key)
public java.lang.Integer getInteger(java.lang.String key)
key - public java.lang.String getString(java.lang.String key)
key - public java.lang.String[] getStringArray(java.lang.String key)
key -