org.springframework.beans.factory.support

## 类 ManagedProperties

- java.lang.Object
- - java.util.Dictionary<K,V>
  - - java.util.Hashtable<Object,Object>
    - - java.util.Properties
      - - org.springframework.beans.factory.support.ManagedProperties

- 所有已实现的接口:
    Serializable, Cloneable, Map<Object,Object>, BeanMetadataElement, Mergeable

      public class ManagedProperties
      extends Properties
      implements Mergeable, BeanMetadataElement

  Tag class which represents a Spring-managed `Properties` instance that supports merging of parent/child definitions.
  从以下版本开始:
    2.0
  作者:
    Rob Harrop, Juergen Hoeller
  另请参阅:
    序列化表格

- - ### 字段概要

    - ### 从类继承的字段 java.util.Properties

      `defaults`

  - ### 构造器概要

    构造器
    构造器和说明
    `ManagedProperties()`

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `Object` | `getSource()` 获取源对象,可能返回null Return the configuration source `Object` for this metadata element (may be `null`).
    `boolean` | `isMergeEnabled()` Is merging enabled for this particular instance?
    `Object` | `merge(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(Object source)` Set the configuration source `Object` for this metadata element.

    - ### 从类继承的方法 java.util.Properties

      `getProperty, getProperty, list, list, load, load, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNames`

    - ### 从类继承的方法 java.util.Hashtable

      `clear, 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, values`

    - ### 从类继承的方法 java.lang.Object

      `finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### 构造器详细资料

    - #### ManagedProperties

          public ManagedProperties()

  - ### 方法详细资料

    - #### setSource

          public void setSource(@Nullable
                                Object source)

      Set the configuration source `Object` for this metadata element.

      The exact type of the object will depend on the configuration mechanism used.

    - #### getSource

          @Nullable
          public Object getSource()

      从接口复制的说明: `BeanMetadataElement`
      获取源对象,可能返回null Return the configuration source `Object` for this metadata element (may be `null`).
      指定者:
        `getSource` 在接口中 `BeanMetadataElement`

    - #### setMergeEnabled

          public void setMergeEnabled(boolean mergeEnabled)

      Set whether merging should be enabled for this collection, in case of a 'parent' collection value being present.

    - #### isMergeEnabled

          public boolean isMergeEnabled()

      从接口复制的说明: `Mergeable`
      Is merging enabled for this particular instance?
      指定者:
        `isMergeEnabled` 在接口中 `Mergeable`

    - #### merge

          public Object merge(@Nullable
                              Object parent)

      从接口复制的说明: `Mergeable`
      Merge the current value set with that of the supplied object.

      The supplied object is considered the parent, and values in the callee's value set must override those of the supplied object.

      指定者:
        `merge` 在接口中 `Mergeable`
      参数:
        `parent` - the object to merge with
      返回:
        the result of the merge operation