@Beta 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) |
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, newInstanceWithInnerClass, newLiveInstance, peek, put, putAll, putAll, putAsStringKeyIfAbsent, putIfAbsent, putIfAbsent, putIfAbsent, putIfAbsentAndNotNull, putIfNotNull, putStringKey, putStringKeyIfHasValue, putStringKeyIfNotNull, remove, remove, removeAll, removeAll, seal, setDescription, size, toString
public ResolvingConfigBag(ManagementContext mgmt, ConfigBag parentBag)
@Beta public static ConfigBag newInstanceExtending(ManagementContext mgmt, ConfigBag parentBag)
public void markUsed(java.lang.String key)
ConfigBag
public java.util.Map<java.lang.String,java.lang.Object> getAllConfig()
ConfigBag
getAllConfig
in class ConfigBag
public java.util.Map<ConfigKey<?>,?> getAllConfigAsConfigKeyMap()
ConfigBag
ConfigKey
instancesgetAllConfigAsConfigKeyMap
in class ConfigBag
public java.util.Map<java.lang.String,java.lang.Object> getUnusedConfig()
ConfigBag
getUnusedConfig
in class ConfigBag
public java.util.Map<java.lang.String,java.lang.Object> getUnusedConfigMutable()
ConfigBag
Accesses to the returned map must be synchronized on this bag if the thread-safe behaviour is required.
getUnusedConfigMutable
in class ConfigBag
public java.util.Map<java.lang.String,java.lang.Object> getAllConfigMutable()
ConfigBag
Accesses to the returned map must be synchronized on this bag if the thread-safe behaviour is required.
getAllConfigMutable
in class ConfigBag
public java.util.Map<java.lang.String,java.lang.Object> getAllConfigRaw()
getAllConfigRaw
in class ConfigBag
ConfigBag.getAllConfigMutable()