public interface CompositeConfig extends Config
| Modifier and Type | Interface and Description |
|---|---|
static interface |
CompositeConfig.CompositeVisitor<T> |
Config.Visitor<T>| Modifier and Type | Method and Description |
|---|---|
boolean |
addConfig(java.lang.String name,
Config child)
Add a named configuration.
|
void |
addConfigs(java.util.LinkedHashMap<java.lang.String,Config> configs)
Add a map of named configurations.
|
Config |
getConfig(java.lang.String name)
Look up a configuration by name
|
java.util.Collection<java.lang.String> |
getConfigNames() |
Config |
removeConfig(java.lang.String name)
Remove a named configuration.
|
void |
replaceConfig(java.lang.String name,
Config child)
Replace the configuration with the specified name
This will trigger an onConfigUpdated event.
|
void |
replaceConfigs(java.util.LinkedHashMap<java.lang.String,Config> configs)
Replace all configurations with the specified names in the map
This will trigger an onConfigUpdated event.
|
accept, addListener, containsKey, get, get, get, get, getBigDecimal, getBigDecimal, getBigInteger, getBigInteger, getBoolean, getBoolean, getByte, getByte, getDecoder, getDouble, getDouble, getFloat, getFloat, getInteger, getInteger, getKeys, getKeys, getList, getList, getList, getLong, getLong, getPrefixedView, getPrivateView, getProperty, getPropertyUninstrumented, getRawProperty, getRawPropertyUninstrumented, getShort, getShort, getString, getString, getStrInterpolator, instrumentationEnabled, keys, recordUsage, removeListener, resolve, resolve, setDecoder, setStrInterpolatorforEachProperty, forEachPropertyUninstrumented, getName, isEmptyboolean addConfig(java.lang.String name,
Config child)
throws ConfigException
This will trigger an onConfigAdded event.
name - child - ConfigExceptionvoid replaceConfig(java.lang.String name,
Config child)
throws ConfigException
name - child - ConfigExceptionvoid addConfigs(java.util.LinkedHashMap<java.lang.String,Config> configs) throws ConfigException
This will trigger an onConfigAdded event.
configs - a map of [configName, config]ConfigExceptionvoid replaceConfigs(java.util.LinkedHashMap<java.lang.String,Config> configs) throws ConfigException
configs - a map of [configName, config]ConfigExceptionConfig removeConfig(java.lang.String name)
name - Config getConfig(java.lang.String name)
name - the config name to look upjava.util.Collection<java.lang.String> getConfigNames()