spring-framework / org.springframework.beans.factory.support / ManagedSet

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).

Author
Juergen Hoeller

Author
Rob Harrop

Since
21.01.2004

Constructors

<init>

ManagedSet()
ManagedSet(initialCapacity: Int)

Functions

getElementTypeName

open fun getElementTypeName(): String

Return the default element type name (class name) to be used for this set.

getSource

open fun getSource(): Any

isMergeEnabled

open fun isMergeEnabled(): Boolean

merge

open fun merge(parent: Any): MutableSet<E>

setElementTypeName

open fun setElementTypeName(elementTypeName: String): Unit

Set the default element type name (class name) to be used for this set.

setMergeEnabled

open fun setMergeEnabled(mergeEnabled: Boolean): Unit

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

setSource

open fun setSource(source: Any): Unit

Set the configuration source Object for this metadata element.

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