| Constructor and Description |
|---|
CommonsWrapper(org.apache.commons.configuration.Configuration config) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getBoolean(String key,
boolean defaultValue) |
float |
getFloat(String key,
float defaultValue) |
int |
getInt(String key,
int defaultValue) |
boolean |
getMandatoryBoolean(String key) |
float |
getMandatoryFloat(String key) |
int |
getMandatoryInt(String key) |
String |
getMandatoryString(String key) |
String |
getString(String key) |
String |
getString(String key,
String defaultValue) |
String[] |
getStringArray(String key) |
void |
listen(String key,
ConfigChangedCallback callback) |
void |
setProperty(String key,
Object value) |
void |
unListen(ConfigChangedCallback callback) |
public CommonsWrapper(org.apache.commons.configuration.Configuration config)
public void unListen(ConfigChangedCallback callback)
public void listen(String key, ConfigChangedCallback callback)
public String[] getStringArray(String key)
getStringArray in interface Configpublic String getMandatoryString(String key) throws ConfigNotFoundException
getMandatoryString in interface ConfigConfigNotFoundExceptionpublic int getMandatoryInt(String key) throws ConfigNotFoundException
getMandatoryInt in interface ConfigConfigNotFoundExceptionpublic float getMandatoryFloat(String key) throws ConfigNotFoundException
getMandatoryFloat in interface ConfigConfigNotFoundExceptionpublic boolean getMandatoryBoolean(String key) throws ConfigNotFoundException
getMandatoryBoolean in interface ConfigConfigNotFoundExceptionpublic float getFloat(String key, float defaultValue)
public boolean getBoolean(String key, boolean defaultValue)
getBoolean in interface Configpublic void setProperty(String key, Object value)
setProperty in interface ConfigCopyright © 2015 Irenical. All rights reserved.