org.jboss.seam.spring.factorybean
Class TypeSafeCdiBeanLookup<T>

java.lang.Object
  extended by 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


Nested Class Summary
static class TypeSafeCdiBeanLookup.Qualifier
           
 
Constructor Summary
TypeSafeCdiBeanLookup(Class<T> expectedType)
           
 
Method Summary
 Class<?> getExpectedType()
           
 T lookupBean(javax.enterprise.inject.spi.BeanManager beanManager)
          Look up a bean instance in the given BeanManager
 void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
           
 void setQualifiers(TypeSafeCdiBeanLookup.Qualifier[] qualifiers)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypeSafeCdiBeanLookup

public TypeSafeCdiBeanLookup(Class<T> expectedType)
Method Detail

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.