public abstract class BeanManagerAware extends Object
This class will first check whether the BeanManager
was injected. If
the injection point was not satisfied, then this class will use the
BeanManagerLocator
to lookup the BeanManager in an external context
(e.g., JNDI).
It's generally acceptable to use this class in cases where injection is not guaranteed. However, in general you should ensure that the classes needing CDI services, such as injection, be available as managed classes.
Constructor and Description |
---|
BeanManagerAware() |
Modifier and Type | Method and Description |
---|---|
BeanManager |
getBeanManager() |
BeanManagerLocator |
getBeanManagerLocator() |
boolean |
isBeanManagerAvailable() |
boolean |
isBeanManagerInjected() |
public BeanManager getBeanManager()
public boolean isBeanManagerAvailable()
public boolean isBeanManagerInjected()
public BeanManagerLocator getBeanManagerLocator()
Copyright © 2012 Seam Framework. All Rights Reserved.