Package javax.enterprise.inject.spi
Interface CDIProvider
- All Superinterfaces:
 Prioritized
Interface implemented by a CDI provider to provide access to the current container
- Since:
 - 1.1
 
- 
Field Summary
Fields - 
Method Summary
Modifier and TypeMethodDescriptiongetCDI()Provides access to the current containerdefault intReturns the priority for this SPI element. 
- 
Field Details
- 
DEFAULT_CDI_PROVIDER_PRIORITY
static final int DEFAULT_CDI_PROVIDER_PRIORITY- See Also:
 
 
 - 
 - 
Method Details
- 
getCDI
Provides access to the current container- Returns:
 - the CDI instance for the current container
 - Throws:
 IllegalStateException- if no CDI container is available
 - 
getPriority
default int getPriority()Description copied from interface:PrioritizedReturns the priority for this SPI element.
- Specified by:
 getPriorityin interfacePrioritized- Returns:
 - the priority value
 
 
 -