public abstract class BeanManagerAware
- extends Object
A convenient base class for obtaining a reference to the BeanManager from a
non-managed class, or a class which may not be managed in certain
environments (i.e., a listener in a Servlet container).
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
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.
- Dan Allen
|Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public BeanManager getBeanManager()
public boolean isBeanManagerAvailable()
public boolean isBeanManagerInjected()
public BeanManagerLocator getBeanManagerLocator()
Copyright © 2011 Seam Framework. All Rights Reserved.