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 Details

    • applicationContext

      protected org.springframework.context.ApplicationContext applicationContext
    • beanNames

      protected String[] beanNames
  • Constructor Details

    • BeanListFactoryBean

      public BeanListFactoryBean()
  • Method Details

    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
    • setBeanNames

      public void setBeanNames(String[] beanNames)
    • getObject

      public List<Object> getObject() throws Exception
      Specified by:
      getObject in interface org.springframework.beans.factory.FactoryBean<List<Object>>
      Throws:
      Exception
    • getObjectType

      public Class<?> getObjectType()
      Specified by:
      getObjectType in interface org.springframework.beans.factory.FactoryBean<List<Object>>
    • isSingleton

      public boolean isSingleton()
      Specified by:
      isSingleton in interface org.springframework.beans.factory.FactoryBean<List<Object>>