|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.enterprise.inject.spi.CDI<T>
public abstract class CDI<T>
Provides access to the current container.
Field Summary | |
---|---|
protected static java.util.Set<CDIProvider> |
providers
|
Constructor Summary | |
---|---|
CDI()
|
Method Summary | ||
---|---|---|
static
|
current()
Get the CDI instance that provides access to the current container. |
|
abstract BeanManager |
getBeanManager()
Get the CDI BeanManager for the current context |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.enterprise.inject.Instance |
---|
isAmbiguous, isUnsatisfied, select, select, select |
Methods inherited from interface java.lang.Iterable |
---|
iterator |
Methods inherited from interface javax.inject.Provider |
---|
get |
Field Detail |
---|
protected static volatile java.util.Set<CDIProvider> providers
Constructor Detail |
---|
public CDI()
Method Detail |
---|
public static <T> CDI<T> current()
Get the CDI instance that provides access to the current container.
If there are no providers available, an IllegalStateException
is thrown, otherwise the
first provider which can access the container is used.
java.lang.IllegalStateException
- if no CDI provider is availablepublic abstract BeanManager getBeanManager()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |