org.jboss.seam.spring.factorybean
Class CdiBeanFactoryBean<T>
java.lang.Object
org.jboss.seam.spring.factorybean.CdiBeanFactoryBean<T>
- All Implemented Interfaces:
- org.springframework.beans.factory.FactoryBean<T>, org.springframework.beans.factory.InitializingBean
public class CdiBeanFactoryBean<T>
- extends Object
- implements org.springframework.beans.factory.FactoryBean<T>, org.springframework.beans.factory.InitializingBean
FactoryBean
for referencing CDI beans from within a Spring ApplicationContext
.
Delegates the lookup strategy to a CdiBeanLookup
instance injected into it,
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CdiBeanFactoryBean
public CdiBeanFactoryBean()
setBeanManager
public void setBeanManager(javax.enterprise.inject.spi.BeanManager beanManager)
- The
BeanManager
from which the beans are retrieved.
- Parameters:
beanManager
-
setCdiBeanLookup
public void setCdiBeanLookup(CdiBeanLookup<T> cdiBeanLookup)
- Allows the injection of a bean lookup strategy
- Parameters:
cdiBeanLookup
-
afterPropertiesSet
public void afterPropertiesSet()
throws Exception
- Specified by:
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
- Throws:
Exception
getObject
public T getObject()
throws Exception
- Specified by:
getObject
in interface org.springframework.beans.factory.FactoryBean<T>
- Throws:
Exception
getObjectType
public Class<?> getObjectType()
- Specified by:
getObjectType
in interface org.springframework.beans.factory.FactoryBean<T>
isSingleton
public boolean isSingleton()
- Specified by:
isSingleton
in interface org.springframework.beans.factory.FactoryBean<T>
Copyright © 2011 Seam Framework. All Rights Reserved.