@Singleton public class EnvironmentConfiguration extends org.apache.commons.configuration.AbstractConfiguration implements ApplicationEventListener<RefreshEvent>
Environment to the AbstractConfiguration type and fires change events when the application is refreshed.| Constructor and Description |
|---|
EnvironmentConfiguration(Environment environment)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addPropertyDirect(String key,
Object value) |
boolean |
containsKey(String key) |
Environment |
getEnvironment() |
Iterator<String> |
getKeys() |
Object |
getProperty(String key) |
boolean |
isEmpty() |
void |
onApplicationEvent(RefreshEvent event)
Handle an application event.
|
addErrorLogListener, addProperty, append, clear, clearProperty, clearPropertyDirect, copy, createInterpolator, getBigDecimal, getBigDecimal, getBigInteger, getBigInteger, getBoolean, getBoolean, getBoolean, getByte, getByte, getByte, getDefaultListDelimiter, getDelimiter, getDouble, getDouble, getDouble, getFloat, getFloat, getFloat, getInt, getInt, getInteger, getInterpolator, getKeys, getList, getList, getListDelimiter, getLogger, getLong, getLong, getLong, getProperties, getProperties, getShort, getShort, getShort, getString, getString, getStringArray, getSubstitutor, interpolate, interpolate, interpolatedConfiguration, interpolateHelper, isDelimiterParsingDisabled, isScalarValue, isThrowExceptionOnMissing, resolveContainerStore, setDefaultListDelimiter, setDelimiter, setDelimiterParsingDisabled, setListDelimiter, setLogger, setProperty, setThrowExceptionOnMissing, subsetaddConfigurationListener, addErrorListener, clearConfigurationListeners, clearErrorListeners, clone, createErrorEvent, createEvent, fireError, fireEvent, getConfigurationListeners, getErrorListeners, isDetailEvents, removeConfigurationListener, removeErrorListener, setDetailEventsequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsupportspublic EnvironmentConfiguration(Environment environment)
environment - environmentpublic Environment getEnvironment()
Environmentprotected void addPropertyDirect(String key, Object value)
addPropertyDirect in class org.apache.commons.configuration.AbstractConfigurationpublic boolean isEmpty()
isEmpty in interface org.apache.commons.configuration.Configurationpublic boolean containsKey(String key)
containsKey in interface org.apache.commons.configuration.Configurationpublic Object getProperty(String key)
getProperty in interface org.apache.commons.configuration.Configurationpublic Iterator<String> getKeys()
getKeys in interface org.apache.commons.configuration.Configurationpublic void onApplicationEvent(RefreshEvent event)
ApplicationEventListeneronApplicationEvent in interface ApplicationEventListener<RefreshEvent>event - the event to respond to