|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.seam.faces.util.BeanManagerUtils
public class BeanManagerUtils
A utility providing common functions to simply use of BeanManager
| Constructor Summary | |
|---|---|
BeanManagerUtils()
|
|
| Method Summary | ||
|---|---|---|
static
|
getContextualInstance(BeanManager manager,
Class<T> type)
Get a single CDI managed instance of a specific class. |
|
|
getContextualInstance(Class<T> type)
Get a single CDI managed instance of a specific class. |
|
|
getContextualInstances(Class<T> type)
Get all CDI managed instances of a specific class. |
|
void |
injectNonContextualInstance(Object instance)
Perform @ Inject on an object as if it were a bean managed by CDI. |
|
|
isDependentScoped(Class<T> type)
Determine if a bean is Dependent scoped. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BeanManagerUtils()
| Method Detail |
|---|
public void injectNonContextualInstance(Object instance)
Inject on an object as if it were a bean managed by CDI.
instance - public <T> boolean isDependentScoped(Class<T> type)
Dependent scoped.
public <T> T getContextualInstance(Class<T> type)
type - The class for which to return an instance.
public static <T> T getContextualInstance(BeanManager manager,
Class<T> type)
NOTE: Using this method should be avoided at all costs.
manager - The bean manager with which to perform the lookup.type - The class for which to return an instance.
public <T> List<T> getContextualInstances(Class<T> type)
List in no specific order.
type - The class for which to return instances.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||