Class 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 Detail

      • applicationContext

        protected org.springframework.context.ApplicationContext applicationContext
      • beanNames

        protected String[] beanNames
    • Constructor Detail

      • BeanListFactoryBean

        public BeanListFactoryBean()
    • Method Detail

      • setApplicationContext

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

        public void setBeanNames​(String[] beanNames)
      • 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>>