@Singleton
public class EnvironmentConfiguration
extends org.apache.commons.configuration.AbstractConfiguration
implements io.micronaut.context.event.ApplicationEventListener<io.micronaut.runtime.context.scope.refresh.RefreshEvent>
Environment
to the AbstractConfiguration
type and fires change events when the application is refreshed.Constructor and Description |
---|
EnvironmentConfiguration(io.micronaut.context.env.Environment environment)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addPropertyDirect(java.lang.String key,
java.lang.Object value) |
boolean |
containsKey(java.lang.String key) |
io.micronaut.context.env.Environment |
getEnvironment() |
java.util.Iterator<java.lang.String> |
getKeys() |
java.lang.Object |
getProperty(java.lang.String key) |
boolean |
isEmpty() |
void |
onApplicationEvent(io.micronaut.runtime.context.scope.refresh.RefreshEvent 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
public EnvironmentConfiguration(io.micronaut.context.env.Environment environment)
environment
- environmentpublic io.micronaut.context.env.Environment getEnvironment()
Environment
protected void addPropertyDirect(java.lang.String key, java.lang.Object value)
addPropertyDirect
in class org.apache.commons.configuration.AbstractConfiguration
public boolean isEmpty()
isEmpty
in interface org.apache.commons.configuration.Configuration
public boolean containsKey(java.lang.String key)
containsKey
in interface org.apache.commons.configuration.Configuration
public java.lang.Object getProperty(java.lang.String key)
getProperty
in interface org.apache.commons.configuration.Configuration
public java.util.Iterator<java.lang.String> getKeys()
getKeys
in interface org.apache.commons.configuration.Configuration
public void onApplicationEvent(io.micronaut.runtime.context.scope.refresh.RefreshEvent event)
onApplicationEvent
in interface io.micronaut.context.event.ApplicationEventListener<io.micronaut.runtime.context.scope.refresh.RefreshEvent>