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
Fields Modifier and Type Field Description protected org.springframework.context.ApplicationContext
applicationContext
protected String[]
beanNames
-
Constructor Summary
Constructors Constructor Description BeanListFactoryBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Object>
getObject()
Class<?>
getObjectType()
boolean
isSingleton()
void
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
void
setBeanNames(String[] beanNames)
-
-
-
Field Detail
-
applicationContext
protected org.springframework.context.ApplicationContext applicationContext
-
beanNames
protected String[] beanNames
-
-
Method Detail
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
- Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
-
setBeanNames
public void setBeanNames(String[] beanNames)
-
getObjectType
public Class<?> getObjectType()
-
-