Interface ExtendedInstance<T>


  • public interface ExtendedInstance<T>
    • Method Detail

      • select

        ExtendedInstance<T> select​(Annotation... qualifiers)

        Obtains a child Instance for the given additional required qualifiers.

        Parameters:
        qualifiers - the additional required qualifiers
        Returns:
        the child Instance
        Throws:
        IllegalArgumentException - if passed two instances of the same non repeating qualifier type, or an instance of an annotation that is not a qualifier type
        IllegalStateException - if the container is already shutdown
      • select

        <U extends TExtendedInstance<U> select​(Class<U> subtype,
                                                 Annotation... qualifiers)

        Obtains a child Instance for the given required type and additional required qualifiers.

        Type Parameters:
        U - the required type
        Parameters:
        subtype - a Class representing the required type
        qualifiers - the additional required qualifiers
        Returns:
        the child Instance
        Throws:
        IllegalArgumentException - if passed two instances of the same non repeating qualifier type, or an instance of an annotation that is not a qualifier type
        IllegalStateException - if the container is already shutdown
      • select

        <U extends TExtendedInstance<U> select​(jakarta.enterprise.util.TypeLiteral<U> subtype,
                                                 Annotation... qualifiers)

        Obtains a child Instance for the given required type and additional required qualifiers.

        Type Parameters:
        U - the required type
        Parameters:
        subtype - a TypeLiteral representing the required type
        qualifiers - the additional required qualifiers
        Returns:
        the child Instance
        Throws:
        IllegalArgumentException - if passed two instances of the same non repeating qualifier type, or an instance of an annotation that is not a qualifier type
        IllegalStateException - if the container is already shutdown
      • getInstance

        jakarta.enterprise.inject.Instance<T> getInstance()