@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, subset
addConfigurationListener, addErrorListener, clearConfigurationListeners, clearErrorListeners, clone, createErrorEvent, createEvent, fireError, fireEvent, getConfigurationListeners, getErrorListeners, isDetailEvents, removeConfigurationListener, removeErrorListener, setDetailEvents
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
supports
public EnvironmentConfiguration(Environment environment)
environment
- environmentpublic Environment getEnvironment()
Environment
protected void addPropertyDirect(String key, Object value)
addPropertyDirect
in class org.apache.commons.configuration.AbstractConfiguration
public boolean isEmpty()
isEmpty
in interface org.apache.commons.configuration.Configuration
public boolean containsKey(String key)
containsKey
in interface org.apache.commons.configuration.Configuration
public Object getProperty(String key)
getProperty
in interface org.apache.commons.configuration.Configuration
public Iterator<String> getKeys()
getKeys
in interface org.apache.commons.configuration.Configuration
public void onApplicationEvent(RefreshEvent event)
ApplicationEventListener
onApplicationEvent
in interface ApplicationEventListener<RefreshEvent>
event
- the event to respond to