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 | |
| protected static volatile Set | |
| private static final Object |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static CDI | Returns: the CDI instanceGet the CDI instance that provides access to the current container. |
| private static void | |
| 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 | |
| lock | back to summary |
|---|---|
| private static final Object lock | |
| CDI | back to summary |
|---|---|
| public CDI() | |
| 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() | |
| 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
| |