Interface ExtendedInstance<T>
-
public interface ExtendedInstance<T>
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceExtendedInstance.Handle<T>This interface represents a contextual reference handle.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description jakarta.enterprise.inject.Instance<T>getInstance()ExtendedInstance.Handle<T>getPseudoScopeClosingHandle()<U extends T>
ExtendedInstance<U>select(jakarta.enterprise.util.TypeLiteral<U> subtype, Annotation... qualifiers)Obtains a childInstancefor the given required type and additional required qualifiers.ExtendedInstance<T>select(Annotation... qualifiers)Obtains a childInstancefor the given additional required qualifiers.<U extends T>
ExtendedInstance<U>select(Class<U> subtype, Annotation... qualifiers)Obtains a childInstancefor the given required type and additional required qualifiers.
-
-
-
Method Detail
-
select
ExtendedInstance<T> select(Annotation... qualifiers)
Obtains a child
Instancefor 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 typeIllegalStateException- if the container is already shutdown
-
select
<U extends T> ExtendedInstance<U> select(Class<U> subtype, Annotation... qualifiers)
Obtains a child
Instancefor the given required type and additional required qualifiers.- Type Parameters:
U- the required type- Parameters:
subtype- aClassrepresenting the required typequalifiers- 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 typeIllegalStateException- if the container is already shutdown
-
select
<U extends T> ExtendedInstance<U> select(jakarta.enterprise.util.TypeLiteral<U> subtype, Annotation... qualifiers)
Obtains a child
Instancefor the given required type and additional required qualifiers.- Type Parameters:
U- the required type- Parameters:
subtype- aTypeLiteralrepresenting the required typequalifiers- 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 typeIllegalStateException- if the container is already shutdown
-
getPseudoScopeClosingHandle
ExtendedInstance.Handle<T> getPseudoScopeClosingHandle()
-
getInstance
jakarta.enterprise.inject.Instance<T> getInstance()
-
-