public class ResolvingConfigBag extends ConfigBag
ConfigBag, but resolves values that are of type DeferredSupplier.| Constructor and Description |
|---|
ResolvingConfigBag(ManagementContext mgmt,
ConfigBag parentBag) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,java.lang.Object> |
getAllConfig()
current values for all entries
|
java.util.Map<ConfigKey<?>,?> |
getAllConfigAsConfigKeyMap()
current values for all entries in a map where the keys are converted to
ConfigKey instances |
java.util.Map<java.lang.String,java.lang.Object> |
getAllConfigMutable()
Returns the internal map containing the current values for all entries;
for use where the caller wants to modify this directly and knows it is safe to do so
|
java.util.Map<java.lang.String,java.lang.Object> |
getAllConfigRaw() |
java.util.Map<java.lang.String,java.lang.Object> |
getUnusedConfig()
current values for all entries which have not yet been used
|
java.util.Map<java.lang.String,java.lang.Object> |
getUnusedConfigMutable()
Returns the internal map containing the current values for all entries which have not yet been used;
for use where the caller wants to modify this directly and knows it is safe to do so
|
void |
markUsed(java.lang.String key)
indicates that a string key in the config map has been accessed
|
static ConfigBag |
newInstanceExtending(ManagementContext mgmt,
ConfigBag parentBag) |
java.lang.String |
toString() |
clear, coerceFirstNonNullKeyValue, configure, configureStringKey, containsKey, containsKey, containsKey, copy, copyKey, copyKeyAs, copyKeys, get, getDescription, getFirst, getObjKeyMaybe, getStringKey, getStringKeyMaybe, getWithDeprecation, getWithDeprecation, isEmpty, isUnused, markAll, newInstance, newInstance, newInstanceCopying, newInstanceExtending, newInstanceExtending, newLiveInstance, peek, put, putAll, putAll, putAsStringKeyIfAbsent, putIfAbsent, putIfAbsent, putIfAbsent, putIfAbsentAndNotNull, putIfNotNull, putStringKey, putStringKeyIfHasValue, putStringKeyIfNotNull, remove, remove, removeAll, removeAll, seal, setDescription, sizepublic ResolvingConfigBag(ManagementContext mgmt, ConfigBag parentBag)
public static ConfigBag newInstanceExtending(ManagementContext mgmt, ConfigBag parentBag)
public void markUsed(java.lang.String key)
ConfigBagpublic java.util.Map<java.lang.String,java.lang.Object> getAllConfig()
ConfigBaggetAllConfig in class ConfigBagpublic java.util.Map<ConfigKey<?>,?> getAllConfigAsConfigKeyMap()
ConfigBagConfigKey instancesgetAllConfigAsConfigKeyMap in class ConfigBagpublic java.util.Map<java.lang.String,java.lang.Object> getUnusedConfig()
ConfigBaggetUnusedConfig in class ConfigBagpublic java.util.Map<java.lang.String,java.lang.Object> getUnusedConfigMutable()
ConfigBagAccesses to the returned map must be synchronized on this bag if the thread-safe behaviour is required.
getUnusedConfigMutable in class ConfigBagpublic java.util.Map<java.lang.String,java.lang.Object> getAllConfigMutable()
ConfigBagAccesses to the returned map must be synchronized on this bag if the thread-safe behaviour is required.
getAllConfigMutable in class ConfigBagpublic java.util.Map<java.lang.String,java.lang.Object> getAllConfigRaw()
getAllConfigRaw in class ConfigBagConfigBag.getAllConfigMutable()