public class BeanManagerLookup extends Object
setBeanManager(BeanManager) in the
setup phase of unit tests to make sure that the lookup is done again.| Modifier and Type | Field and Description |
|---|---|
static String |
BEAN_MANAGER_JNDI |
| Constructor and Description |
|---|
BeanManagerLookup() |
| Modifier and Type | Method and Description |
|---|---|
static javax.enterprise.inject.spi.BeanManager |
lookup()
Looks up the bean manager if not already cached and returns it.
|
static void |
setBeanManager(javax.enterprise.inject.spi.BeanManager aMgr)
Sets the bean manager (mainly for testability).
|
public static final String BEAN_MANAGER_JNDI
public static void setBeanManager(javax.enterprise.inject.spi.BeanManager aMgr)
aMgr - Bean manager.public static javax.enterprise.inject.spi.BeanManager lookup()
Copyright © 2025. All rights reserved.