| Modifier and Type | Field | Description |
|---|---|---|
protected static CDIProvider |
configuredProvider |
|
protected static java.util.Set<CDIProvider> |
discoveredProviders |
| Constructor | Description |
|---|---|
CDI() |
| Modifier and Type | Method | Description |
|---|---|---|
static CDI<java.lang.Object> |
current() |
Get the CDI instance that provides access to the current container.
|
abstract BeanManager |
getBeanManager() |
Get the CDI BeanManager for the current context
|
static void |
setCDIProvider(CDIProvider provider) |
Set the
CDIProvider to use. |
destroy, isAmbiguous, isUnsatisfied, select, select, selectprotected static volatile java.util.Set<CDIProvider> discoveredProviders
protected static volatile CDIProvider configuredProvider
public static CDI<java.lang.Object> 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 static void setCDIProvider(CDIProvider provider)
Set the CDIProvider to use.
If a CDIProvider is set using this method, any provider specified as a service provider will not be used.
provider - the provider to usejava.lang.IllegalStateException - if the CDIProvider is already setpublic abstract BeanManager getBeanManager()