public class ManagedProperties extends java.util.Properties implements Mergeable, BeanMetadataElement
Properties instance
that supports merging of parent/child definitions.| Constructor and Description |
|---|
ManagedProperties() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getSource()
Return the configuration source
Object for this metadata element
(may be null). |
boolean |
isMergeEnabled()
Is merging enabled for this particular instance?
|
java.lang.Object |
merge(java.lang.Object parent)
Merge the current value set with that of the supplied object.
|
void |
setMergeEnabled(boolean mergeEnabled)
Set whether merging should be enabled for this collection,
in case of a 'parent' collection value being present.
|
void |
setSource(java.lang.Object source)
Set the configuration source
Object for this metadata element. |
getProperty, getProperty, list, list, load, load, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNamesclear, clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keys, keySet, merge, put, putAll, putIfAbsent, rehash, remove, remove, replace, replace, replaceAll, size, toString, valuespublic void setSource(@Nullable java.lang.Object source)
Object for this metadata element.
The exact type of the object will depend on the configuration mechanism used.
@Nullable public java.lang.Object getSource()
BeanMetadataElementObject for this metadata element
(may be null).getSource in interface BeanMetadataElementpublic void setMergeEnabled(boolean mergeEnabled)
public boolean isMergeEnabled()
MergeableisMergeEnabled in interface Mergeablepublic java.lang.Object merge(@Nullable java.lang.Object parent)
MergeableThe supplied object is considered the parent, and values in the callee's value set must override those of the supplied object.