org.jboss.seam.spring.factorybean
Class TypeSafeCdiBeanLookup<T>
java.lang.Object
org.jboss.seam.spring.factorybean.TypeSafeCdiBeanLookup<T>
- All Implemented Interfaces:
- CdiBeanLookup<T>, org.springframework.context.ApplicationContextAware
public class TypeSafeCdiBeanLookup<T>
- extends Object
- implements CdiBeanLookup<T>, org.springframework.context.ApplicationContextAware
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TypeSafeCdiBeanLookup
public TypeSafeCdiBeanLookup(Class<T> expectedType)
setQualifiers
public void setQualifiers(TypeSafeCdiBeanLookup.Qualifier[] qualifiers)
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
- Specified by:
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
lookupBean
public T lookupBean(javax.enterprise.inject.spi.BeanManager beanManager)
- Description copied from interface:
CdiBeanLookup
- Look up a bean instance in the given
BeanManager
- Specified by:
lookupBean
in interface CdiBeanLookup<T>
- Returns:
getExpectedType
public Class<?> getExpectedType()
- Specified by:
getExpectedType
in interface CdiBeanLookup<T>
- Returns:
- the expected type of this lookup, if any (can be
null
, meaning that the type is not known)
Copyright © 2011 Seam Framework. All Rights Reserved.