Class InstanceInjectionTargetExtension<T>

  • Type Parameters:
    T - the provided type
    All Implemented Interfaces:
    InjectionTargetExtension<jakarta.enterprise.inject.Instance<T>,​T>

    public class InstanceInjectionTargetExtension<T>
    extends java.lang.Object
    implements InjectionTargetExtension<jakarta.enterprise.inject.Instance<T>,​T>
    An InjectionTargetExtension which provides a partial implementation of the Instance provider type.
    • Constructor Detail

      • InstanceInjectionTargetExtension

        public InstanceInjectionTargetExtension()
    • Method Detail

      • getElementType

        public java.lang.reflect.Type getElementType​(java.lang.reflect.Type type)
        Description copied from interface: InjectionTargetExtension
        Returns the element type of the given type by unwrapping the given type. Returning null or the same type is not allowed.
        Specified by:
        getElementType in interface InjectionTargetExtension<jakarta.enterprise.inject.Instance<T>,​T>
        Parameters:
        type - a Type to unwrap, cannot be null
        Returns:
        the element type of the given type by unwrapping the given type, never null