public class CDIBeanFinder extends Object implements BeanFinder
Modifier and Type | Field and Description |
---|---|
static String |
BEAN_MANAGER_JNDI |
static String |
BEAN_MANAGER_JNDI_TOMCAT |
static String |
SERVLET_CONTEXT_ATTR_WELD_1_1 |
Constructor and Description |
---|
CDIBeanFinder() |
Modifier and Type | Method and Description |
---|---|
<T> Collection<T> |
find(Class<T> clazz,
Object context)
Retrieve a list of all beans of the given type.
|
public static final String BEAN_MANAGER_JNDI
public static final String BEAN_MANAGER_JNDI_TOMCAT
public static final String SERVLET_CONTEXT_ATTR_WELD_1_1
public <T> Collection<T> find(Class<T> clazz, Object context)
BeanFinder
find
in interface BeanFinder
clazz
- The type to lookup. In most cases this will be an interface.context
- An optional context that may help the implementation to interact with the bean container. In Servlet
environments this context object is the ServletContext.null
Copyright © 2015. All Rights Reserved.