org.springframework.plugin.core.support
Class BeanListFactoryBean<T>

java.lang.Object
  extended by org.springframework.plugin.core.support.AbstractTypeAwareSupport<T>
      extended by org.springframework.plugin.core.support.BeanListFactoryBean<T>
All Implemented Interfaces:
EventListener, org.springframework.beans.factory.Aware, org.springframework.beans.factory.FactoryBean<List<T>>, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>

public class BeanListFactoryBean<T>
extends AbstractTypeAwareSupport<T>
implements org.springframework.beans.factory.FactoryBean<List<T>>

Factory to create bean lists for a given type. Exposes all beans of the configured type that can be found in the ApplicationContext.

Author:
Oliver Gierke

Constructor Summary
BeanListFactoryBean()
           
 
Method Summary
 List<T> getObject()
           
 Class<?> getObjectType()
           
 boolean isSingleton()
           
 
Methods inherited from class org.springframework.plugin.core.support.AbstractTypeAwareSupport
afterPropertiesSet, getBeans, onApplicationEvent, setApplicationContext, setExclusions, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanListFactoryBean

public BeanListFactoryBean()
Method Detail

getObject

public List<T> getObject()
Specified by:
getObject in interface org.springframework.beans.factory.FactoryBean<List<T>>

getObjectType

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

isSingleton

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


Copyright © 2008-2014–2014 Pivotal, Inc.. All rights reserved.