Instance. Always Object for CDI
CDI implements Instance and therefore might be used to perform programmatic lookup.
If no qualifier is passed to select method, the @Default qualifier is assumed.
| Modifier and Type | Field and Description |
|---|---|
| protected static volatile CDIProvider | configuredProvider
|
| protected static volatile Set | discoveredProviders
The set of discovered CDIProviders |
| private static final Object | |
| private static volatile boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static boolean | |
| public static CDI | Returns: the CDI instanceGet the CDI instance that provides access to the current container. |
| private static void | |
| public BeanContainer | |
| public abstract BeanManager | |
| private static CDIProvider | Returns: theCDIProvider set by user or retrieved by serviceloaderObtain the |
| public static void |
| configuredProvider | back to summary |
|---|---|
| protected static volatile CDIProvider configuredProvider
| |
| discoveredProviders | back to summary |
|---|---|
| protected static volatile Set<CDIProvider> discoveredProviders The set of discovered CDIProviders | |
| lock | back to summary |
|---|---|
| private static final Object lock | |
| providerSetManually | back to summary |
|---|---|
| private static volatile boolean providerSetManually | |
| CDI | back to summary |
|---|---|
| public CDI() | |
| checkProvider | back to summary |
|---|---|
| private static boolean checkProvider(CDIProvider c) | |
| current | back to summary |
|---|---|
| public static CDI Get the CDI instance that provides access to the current container.
If there are no providers available, an
| |
| findAllProviders | back to summary |
|---|---|
| private static void findAllProviders() | |
| getBeanContainer | back to summary |
|---|---|
| public BeanContainer getBeanContainer() Get the CDI
| |
| getBeanManager | back to summary |
|---|---|
| public abstract BeanManager getBeanManager() Get the CDI BeanManager for the current context
| |
| getCDIProvider | back to summary |
|---|---|
| private static CDIProvider getCDIProvider() Obtain the
| |
| setCDIProvider | back to summary |
|---|---|
| public static void setCDIProvider(CDIProvider provider)
Set the
If a
| |