Package jakarta.enterprise.inject.spi
Interface CDIProvider
- 
- All Superinterfaces:
- Prioritized
 
 public interface CDIProvider extends Prioritized Interface implemented by a CDI provider to provide access to the current container- Since:
- 1.1
- Author:
- Pete Muir
 
- 
- 
Field SummaryFields Modifier and Type Field Description static intDEFAULT_CDI_PROVIDER_PRIORITY
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CDI<Object>getCDI()Provides access to the current containerdefault intgetPriority()Returns the priority for this SPI element.
 
- 
- 
- 
Field Detail- 
DEFAULT_CDI_PROVIDER_PRIORITYstatic final int DEFAULT_CDI_PROVIDER_PRIORITY - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getCDICDI<Object> getCDI() Provides access to the current container- Returns:
- the CDI instance for the current container
- Throws:
- IllegalStateException- if no CDI container is available
 
 - 
getPrioritydefault int getPriority() Description copied from interface:PrioritizedReturns the priority for this SPI element. - Specified by:
- getPriorityin interface- Prioritized
- Returns:
- the priority value
 
 
- 
 
-