Class SetFactoryBean
java.lang.Object
org.springframework.beans.factory.config.AbstractFactoryBean<Set<Object>>
org.springframework.beans.factory.config.SetFactoryBean
- All Implemented Interfaces:
 Aware,BeanClassLoaderAware,BeanFactoryAware,DisposableBean,FactoryBean<Set<Object>>,InitializingBean
Simple factory for shared Set instances. Allows for central setup
 of Sets via the "set" element in XML bean definitions.
- Since:
 - 09.12.2003
 - Author:
 - Juergen Hoeller
 - See Also:
 
- 
Field Summary
Fields inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
loggerFields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionTemplate method that subclasses must override to construct the object returned by this factory.This abstract method declaration mirrors the method in the FactoryBean interface, for a consistent offering of abstract template methods.voidsetSourceSet(Set<?> sourceSet) Set the source Set, typically populated via XML "set" elements.voidsetTargetSetClass(@Nullable Class<? extends Set> targetSetClass) Set the class to use for the target Set.Methods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
afterPropertiesSet, destroy, destroyInstance, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton 
- 
Constructor Details
- 
SetFactoryBean
public SetFactoryBean() 
 - 
 - 
Method Details
- 
setSourceSet
Set the source Set, typically populated via XML "set" elements. - 
setTargetSetClass
 - 
getObjectType
Description copied from class:AbstractFactoryBeanThis abstract method declaration mirrors the method in the FactoryBean interface, for a consistent offering of abstract template methods.- Specified by:
 getObjectTypein interfaceFactoryBean<Set<Object>>- Specified by:
 getObjectTypein classAbstractFactoryBean<Set<Object>>- Returns:
 - the type of object that this FactoryBean creates,
 or 
nullif not known at the time of the call - See Also:
 
 - 
createInstance
Description copied from class:AbstractFactoryBeanTemplate method that subclasses must override to construct the object returned by this factory.Invoked on initialization of this FactoryBean in case of a singleton; else, on each
AbstractFactoryBean.getObject()call.- Specified by:
 createInstancein classAbstractFactoryBean<Set<Object>>- Returns:
 - the object returned by this factory
 - See Also:
 
 
 -