Top Description Methods
org.springframework.beans

public Interface Mergeable

Known Direct Implementers
org.springframework.beans.factory.support.ManagedList, org.springframework.beans.factory.support.ManagedMap, org.springframework.beans.factory.support.ManagedProperties, org.springframework.beans.factory.support.ManagedSet
Imports
org.springframework.lang.Nullable

Interface representing an object whose value set can be merged with that of a parent object.
Author
Rob Harrop
Since
2.0
See Also
org.springframework.beans.factory.support.ManagedSet, org.springframework.beans.factory.support.ManagedList, org.springframework.beans.factory.support.ManagedMap, org.springframework.beans.factory.support.ManagedProperties

Method Summary

Modifier and TypeMethod and Description
public boolean
isMergeEnabled()

Is merging enabled for this particular instance?

public Object

Returns:

the result of the merge operation
merge
(Object
the object to merge with
parent
)

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

Method Detail

isMergeEnabledback to summary
public boolean isMergeEnabled()

Is merging enabled for this particular instance?

mergeback to summary
public Object merge(Object parent)

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

Exceptions
IllegalArgumentException:
if the supplied parent is null
IllegalStateException:
if merging is not enabled for this instance (i.e. mergeEnabled equals false).