spring-framework / org.springframework.beans.factory.config / SetFactoryBean

SetFactoryBean

open class SetFactoryBean : AbstractFactoryBean<MutableSet<Any>>

Simple factory for shared Set instances. Allows for central setup of Sets via the "set" element in XML bean definitions.

Author
Juergen Hoeller

Since
09.12.2003

See Also
ListFactoryBeanMapFactoryBean

Constructors

<init>

SetFactoryBean()

Simple factory for shared Set instances. Allows for central setup of Sets via the "set" element in XML bean definitions.

Functions

getObjectType

open fun getObjectType(): Class<MutableSet<Any?>>

setSourceSet

open fun setSourceSet(sourceSet: MutableSet<*>): Unit

Set the source Set, typically populated via XML "set" elements.

setTargetSetClass

open fun setTargetSetClass(targetSetClass: Class<out MutableSet<Any?>>): Unit

Set the class to use for the target Set. Can be populated with a fully qualified class name when defined in a Spring application context.

Default is a linked HashSet, keeping the registration order.