spring-framework / org.springframework.beans / Mergeable

Mergeable

interface Mergeable

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.ManagedSetorg.springframework.beans.factory.support.ManagedListorg.springframework.beans.factory.support.ManagedMaporg.springframework.beans.factory.support.ManagedProperties

Functions

isMergeEnabled

abstract fun isMergeEnabled(): Boolean

Is merging enabled for this particular instance?

merge

abstract fun merge(parent: Any): Any

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.

Inheritors

ManagedList

open class ManagedList<E : Any> : ArrayList<E>, Mergeable, BeanMetadataElement

Tag collection class used to hold managed List elements, which may include runtime bean references (to be resolved into bean objects).

ManagedMap

open class ManagedMap<K : Any, V : Any> : LinkedHashMap<K, V>, Mergeable, BeanMetadataElement

Tag collection class used to hold managed Map values, which may include runtime bean references (to be resolved into bean objects).

ManagedProperties

open class ManagedProperties : Properties, Mergeable, BeanMetadataElement

Tag class which represents a Spring-managed Properties instance that supports merging of parent/child definitions.

ManagedSet

open class ManagedSet<E : Any> : LinkedHashSet<E>, Mergeable, BeanMetadataElement

Tag collection class used to hold managed Set values, which may include runtime bean references (to be resolved into bean objects).