public class BeanManagerUtils extends Object
BeanManager| Constructor and Description |
|---|
BeanManagerUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
getContextualInstance(javax.enterprise.inject.spi.BeanManager manager,
Class<T> type)
Get a single CDI managed instance of a specific class.
|
<T> T |
getContextualInstance(Class<T> type)
Get a single CDI managed instance of a specific class.
|
<T> List<T> |
getContextualInstances(Class<T> type)
Get all CDI managed instances of a specific class.
|
static <T> T |
getContextualInstanceStrict(javax.enterprise.inject.spi.BeanManager manager,
Class<T> type)
Get a CDI managed instance matching exactly the given type.
|
<T> T |
getContextualInstanceStrict(Class<T> type)
Get a CDI managed instance matching exactly the given type.
|
void |
injectNonContextualInstance(Object instance)
Perform @
Inject on an object as if it were a bean managed by CDI. |
<T> boolean |
isDependentScopedStrict(Class<T> type)
Determine if a bean is
Dependent scoped. |
public void injectNonContextualInstance(Object instance)
Inject on an object as if it were a bean managed by CDI.instance - public <T> boolean isDependentScopedStrict(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(javax.enterprise.inject.spi.BeanManager manager,
Class<T> type)
manager - The bean manager with which to perform the lookup.type - The class for which to return an instance.public <T> T getContextualInstanceStrict(Class<T> type)
type - The class for which to return an instance.public static <T> T getContextualInstanceStrict(javax.enterprise.inject.spi.BeanManager manager,
Class<T> type)
manager - The bean manager with which to perform the lookup.type - The class for which to return an instance.Copyright © 2009-2013 Seam Framework. All Rights Reserved.