Class CDI<T>

java.lang.Object
jakarta.enterprise.inject.spi.CDI<T>
Type Parameters:
T - type inherited from Instance. Always Object for CDI
All Implemented Interfaces:
Instance<T>, jakarta.inject.Provider<T>, Iterable<T>

public abstract class CDI<T> extends Object implements Instance<T>
Provides access to the current container.

CDI implements Instance and therefore might be used to perform programmatic lookup. Initially, the required type of the Instance is java.lang.Object and there are no required qualifiers. If no qualifier is passed to Instance.select(), there is one required qualifier: @Default.

Since:
1.1
Author:
Pete Muir, Antoine Sabot-Durand, John D. Ament