类 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-managedProperties
instance that supports merging of parent/child definitions.- 从以下版本开始:
- 2.0
- 作者:
- Rob Harrop, Juergen Hoeller
- 另请参阅:
- 序列化表格
字段概要
从类继承的字段 java.util.Properties
defaults
构造器概要
构造器 构造器 说明 ManagedProperties()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 Object
getSource()
Return the configuration sourceObject
for this metadata element (may benull
).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 sourceObject
for 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(Object source)
Set the configuration sourceObject
for this metadata element.The exact type of the object will depend on the configuration mechanism used.
getSource
public Object getSource()
从接口复制的说明:BeanMetadataElement
Return the configuration sourceObject
for 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()
从接口复制的说明:Mergeable
Is merging enabled for this particular instance?- 指定者:
isMergeEnabled
在接口中Mergeable