|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.beans.factory.config.AbstractFactoryBean<Set>
org.springframework.beans.factory.config.SetFactoryBean
public class SetFactoryBean
Simple factory for shared Set instances. Allows for central setup of Sets via the "set" element in XML bean definitions.
ListFactoryBean,
MapFactoryBean| Field Summary |
|---|
| Fields inherited from class org.springframework.beans.factory.config.AbstractFactoryBean |
|---|
logger |
| Constructor Summary | |
|---|---|
SetFactoryBean()
|
|
| Method Summary | |
|---|---|
protected Set |
createInstance()
Template method that subclasses must override to construct the object returned by this factory. |
Class<Set> |
getObjectType()
This abstract method declaration mirrors the method in the FactoryBean interface, for a consistent offering of abstract template methods. |
void |
setSourceSet(Set sourceSet)
Set the source Set, typically populated via XML "set" elements. |
void |
setTargetSetClass(Class 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SetFactoryBean()
| Method Detail |
|---|
public void setSourceSet(Set sourceSet)
public void setTargetSetClass(Class targetSetClass)
Default is a linked HashSet, keeping the registration order.
LinkedHashSetpublic Class<Set> getObjectType()
AbstractFactoryBean
getObjectType in interface FactoryBean<Set>getObjectType in class AbstractFactoryBean<Set>null if not known at the time of the callFactoryBean.getObjectType()protected Set createInstance()
AbstractFactoryBeanInvoked on initialization of this FactoryBean in case of
a singleton; else, on each AbstractFactoryBean.getObject() call.
createInstance in class AbstractFactoryBean<Set>AbstractFactoryBean.getObject()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||