Package org.craftercms.commons.spring
Class BeanListFactoryBean
java.lang.Object
org.craftercms.commons.spring.BeanListFactoryBean
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.FactoryBean<List<Object>>
,org.springframework.context.ApplicationContextAware
public class BeanListFactoryBean
extends Object
implements org.springframework.beans.factory.FactoryBean<List<Object>>, org.springframework.context.ApplicationContextAware
Spring factory bean that creates a list of beans based on a list of bean names.
- Author:
- avasquez
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContext
protected String[]
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClass<?>
boolean
void
setApplicationContext
(org.springframework.context.ApplicationContext applicationContext) void
setBeanNames
(String[] beanNames)
-
Field Details
-
applicationContext
protected org.springframework.context.ApplicationContext applicationContext -
beanNames
-
-
Constructor Details
-
BeanListFactoryBean
public BeanListFactoryBean()
-
-
Method Details
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) - Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
-
setBeanNames
-
getObject
-
getObjectType
-
isSingleton
public boolean isSingleton()
-