Interface ExtendedInstance<T>
-
public interface ExtendedInstance<T>
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
ExtendedInstance.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 childInstance
for the given required type and additional required qualifiers.ExtendedInstance<T>
select(Annotation... qualifiers)
Obtains a childInstance
for the given additional required qualifiers.<U extends T>
ExtendedInstance<U>select(Class<U> subtype, Annotation... qualifiers)
Obtains a childInstance
for the given required type and additional required qualifiers.
-
-
-
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 typeIllegalStateException
- if the container is already shutdown
-
select
<U extends T> ExtendedInstance<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
- aClass
representing 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
Instance
for the given required type and additional required qualifiers.- Type Parameters:
U
- the required type- Parameters:
subtype
- aTypeLiteral
representing 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()
-
-