public abstract class CDI<T> extends Object implements Instance<T>
Static helper class to access the BeanManager
Usage:
BeanManager bm = CDI.current().getBeanManager();
Constructor and Description |
---|
CDI() |
Modifier and Type | Method and Description |
---|---|
static CDI<Object> |
current() |
abstract BeanManager |
getBeanManager() |
static void |
setCDIProvider(CDIProvider provider)
A container or an application can set this manually.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
destroy, isAmbiguous, isUnsatisfied, select, select, select
forEach, iterator, spliterator
public static void setCDIProvider(CDIProvider provider)
A container or an application can set this manually. If not
we will use the ServiceLoader
and use the
first service we find.
provider
- to usepublic abstract BeanManager getBeanManager()
Copyright © 2017. All rights reserved.