Top Description Fields Constructors Methods
org.springframework.beans.factory.support

public Class ManagedProperties

extends Properties
implements Mergeable, BeanMetadataElement
Class Inheritance
All Implemented Interfaces
org.springframework.beans.BeanMetadataElement, org.springframework.beans.Mergeable
Annotations
@SuppressWarnings:serial
Imports
java.util.Properties, org.springframework.beans.BeanMetadataElement, .Mergeable, org.springframework.lang.Nullable

Tag class which represents a Spring-managed Properties instance that supports merging of parent/child definitions.
Authors
Rob Harrop, Juergen Hoeller
Since
2.0

Field Summary

Modifier and TypeField and Description
private boolean
private Object
Inherited from java.util.Properties:
defaults

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Object
getSource()

Overrides default org.springframework.beans.BeanMetadataElement.getSource.

Return the configuration source Object for this metadata element (may be null).

public boolean
isMergeEnabled()

Implements org.springframework.beans.Mergeable.isMergeEnabled.

Is merging enabled for this particular instance?

public Object
merge(Object
the object to merge with
parent
)

Implements org.springframework.beans.Mergeable.merge.

Merge the current value set with that of the supplied object.

public void
setMergeEnabled(boolean mergeEnabled)

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

public void
setSource(Object source)

Set the configuration source Object for this metadata element.

Inherited from java.util.Properties:
clearclonecomputecomputeIfAbsentcomputeIfPresentcontainscontainsKeycontainsValueelementsentrySetequalsforEachgetgetOrDefaultgetPropertygetPropertyhashCodeisEmptykeyskeySetlistlistloadloadloadFromXMLmergepropertyNamesputputAllputIfAbsentrehashremoveremovereplacereplacereplaceAllsavesetPropertysizestorestorestoreToXMLstoreToXMLstoreToXMLstringPropertyNamestoStringvalues

Field Detail

mergeEnabledback to summary
private boolean mergeEnabled
sourceback to summary
private Object source
Annotations
@Nullable

Constructor Detail

ManagedPropertiesback to summary
public ManagedProperties()

Method Detail

getSourceback to summary
public Object getSource()

Overrides default org.springframework.beans.BeanMetadataElement.getSource.

Doc from org.springframework.beans.BeanMetadataElement.getSource.

Return the configuration source Object for this metadata element (may be null).

Annotations
@Override
@Nullable
isMergeEnabledback to summary
public boolean isMergeEnabled()

Implements org.springframework.beans.Mergeable.isMergeEnabled.

Doc from org.springframework.beans.Mergeable.isMergeEnabled.

Is merging enabled for this particular instance?

Annotations
@Override
mergeback to summary
public Object merge(Object parent)

Implements org.springframework.beans.Mergeable.merge.

Doc from org.springframework.beans.Mergeable.merge.

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.

Parameters
parent:Object

the object to merge with

Returns:Object

the result of the merge operation

Annotations
@Override
setMergeEnabledback to summary
public void setMergeEnabled(boolean mergeEnabled)

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

setSourceback to summary
public void setSource(Object source)

Set the configuration source Object for this metadata element.

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