|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.beans.factory.config.AbstractFactoryBean<List> org.springframework.beans.factory.config.ListFactoryBean
public class ListFactoryBean
Simple factory for shared List instances. Allows for central setup of Lists via the "list" element in XML bean definitions.
SetFactoryBean
,
MapFactoryBean
Field Summary |
---|
Fields inherited from class org.springframework.beans.factory.config.AbstractFactoryBean |
---|
logger |
Constructor Summary | |
---|---|
ListFactoryBean()
|
Method Summary | |
---|---|
protected List |
createInstance()
Template method that subclasses must override to construct the object returned by this factory. |
Class<List> |
getObjectType()
This abstract method declaration mirrors the method in the FactoryBean interface, for a consistent offering of abstract template methods. |
void |
setSourceList(List sourceList)
Set the source List, typically populated via XML "list" elements. |
void |
setTargetListClass(Class targetListClass)
Set the class to use for the target List. |
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 ListFactoryBean()
Method Detail |
---|
public void setSourceList(List sourceList)
public void setTargetListClass(Class targetListClass)
Default is a java.util.ArrayList
.
ArrayList
public Class<List> getObjectType()
AbstractFactoryBean
getObjectType
in interface FactoryBean<List>
getObjectType
in class AbstractFactoryBean<List>
null
if not known at the time of the callFactoryBean.getObjectType()
protected List createInstance()
AbstractFactoryBean
Invoked on initialization of this FactoryBean in case of
a singleton; else, on each AbstractFactoryBean.getObject()
call.
createInstance
in class AbstractFactoryBean<List>
AbstractFactoryBean.getObject()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |