public class DynamicConfiguration extends Configuration
Makes it possible to define Application Configuration Entries (ACEs) at runtime, building upon an (optional) underlying configuration. Entries from the underlying configuration take precedence over dynamic entries.
Configuration.Parameters
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
LOG |
Constructor and Description |
---|
DynamicConfiguration(Configuration delegate)
Create a dynamic configuration.
|
Modifier and Type | Method and Description |
---|---|
void |
addAppConfigurationEntry(String name,
AppConfigurationEntry... entry)
Add entries for the given application name.
|
AppConfigurationEntry[] |
getAppConfigurationEntry(String name)
Retrieve the AppConfigurationEntries for the specified name from this Configuration.
|
void |
refresh() |
getConfiguration, getInstance, getInstance, getInstance, getParameters, getProvider, getType, setConfiguration
public DynamicConfiguration(@Nullable Configuration delegate)
delegate
- an underlying configuration to delegate to, or null.public void addAppConfigurationEntry(String name, AppConfigurationEntry... entry)
public AppConfigurationEntry[] getAppConfigurationEntry(String name)
getAppConfigurationEntry
in class Configuration
name
- the name used to index the Configuration.public void refresh()
refresh
in class Configuration
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.