public class CommonsWrapper extends Object implements Config, ConfigContext
Config.Match| Constructor and Description |
|---|
CommonsWrapper(org.apache.commons.configuration.Configuration config) |
public CommonsWrapper(org.apache.commons.configuration.Configuration config)
public String listen(String key, Config.Match keyMatchingRule, PropertyChangedCallback callback)
public String listen(String key, PropertyChangedCallback 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 long getMandatoryLong(String key) throws ConfigNotFoundException
getMandatoryLong in interface ConfigConfigNotFoundExceptionpublic float getFloat(String key, float defaultValue)
public long getLong(String key, long defaultValue)
public boolean getBoolean(String key, boolean defaultValue)
getBoolean in interface Configpublic void setProperty(String key, Object value)
setProperty in interface Configpublic Config filterPrefix(String prefix)
filterPrefix in interface Configpublic void clearProperty(String key)
clearProperty in interface Configpublic String getApplicationId()
getApplicationId in interface ConfigContextpublic String getDatacenter()
getDatacenter in interface ConfigContextpublic String getEnvironment()
getEnvironment in interface ConfigContextpublic String getRegion()
getRegion in interface ConfigContextpublic String getServerId()
getServerId in interface ConfigContextpublic String getStack()
getStack in interface ConfigContextCopyright © 2017 Irenical. All rights reserved.