类 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-managedPropertiesinstance that supports merging of parent/child definitions.- 从以下版本开始:
- 2.0
- 作者:
- Rob Harrop, Juergen Hoeller
- 另请参阅:
- 序列化表格
字段概要
从类继承的字段 java.util.Properties
defaults
构造器概要
构造器 构造器 说明 ManagedProperties()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 ObjectgetSource()Return the configuration sourceObjectfor this metadata element (may benull).booleanisMergeEnabled()Is merging enabled for this particular instance?Objectmerge(Object parent)Merge the current value set with that of the supplied object.voidsetMergeEnabled(boolean mergeEnabled)Set whether merging should be enabled for this collection, in case of a 'parent' collection value being present.voidsetSource(Object source)Set the configuration sourceObjectfor this metadata element.从类继承的方法 java.util.Properties
clear, clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, get, getOrDefault, getProperty, getProperty, hashCode, isEmpty, keys, keySet, list, list, load, load, loadFromXML, merge, propertyNames, put, putAll, putIfAbsent, rehash, remove, remove, replace, replace, replaceAll, save, setProperty, size, store, store, storeToXML, storeToXML, storeToXML, stringPropertyNames, toString, values
构造器详细资料
ManagedProperties
public ManagedProperties()
方法详细资料
setSource
public void setSource(@Nullable Object source)
Set the configuration sourceObjectfor this metadata element.The exact type of the object will depend on the configuration mechanism used.
getSource
@Nullable public Object getSource()
从接口复制的说明:BeanMetadataElementReturn the configuration sourceObjectfor this metadata element (may benull).- 指定者:
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()
从接口复制的说明:MergeableIs merging enabled for this particular instance?- 指定者:
isMergeEnabled在接口中Mergeable