Package io.quarkus.arc
Interface InjectableInstance<T>
-
- Type Parameters:
T-
- All Superinterfaces:
javax.enterprise.inject.Instance<T>,Iterable<T>,javax.inject.Provider<T>
- All Known Implementing Classes:
InstanceImpl
public interface InjectableInstance<T> extends javax.enterprise.inject.Instance<T>Enhanced version ofInstance.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclearCache()Removes the cached result of theProvider.get()operation.InstanceHandle<T>getHandle()Iterable<InstanceHandle<T>>handles()Iterator<T>iterator()This method attempts to resolve ambiguities.InjectableInstance<T>select(Annotation... qualifiers)<U extends T>
InjectableInstance<U>select(Class<U> subtype, Annotation... qualifiers)<U extends T>
InjectableInstance<U>select(javax.enterprise.util.TypeLiteral<U> subtype, Annotation... qualifiers)-
Methods inherited from interface javax.enterprise.inject.Instance
destroy, isAmbiguous, isResolvable, isUnsatisfied, stream
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
getHandle
InstanceHandle<T> getHandle()
-
handles
Iterable<InstanceHandle<T>> handles()
-
select
InjectableInstance<T> select(Annotation... qualifiers)
- Specified by:
selectin interfacejavax.enterprise.inject.Instance<T>
-
select
<U extends T> InjectableInstance<U> select(Class<U> subtype, Annotation... qualifiers)
- Specified by:
selectin interfacejavax.enterprise.inject.Instance<T>
-
select
<U extends T> InjectableInstance<U> select(javax.enterprise.util.TypeLiteral<U> subtype, Annotation... qualifiers)
- Specified by:
selectin interfacejavax.enterprise.inject.Instance<T>
-
clearCache
void clearCache()
Removes the cached result of theProvider.get()operation. If the cached result was a contextual reference of aDependentbean, destroy the reference as well.- See Also:
WithCaching
-
iterator
Iterator<T> iterator()
This method attempts to resolve ambiguities.In general, if multiple beans are eligible then the container eliminates all beans that are:
- not alternatives, except for producer methods and fields of beans that are alternatives,
- default beans.
- Specified by:
iteratorin interfaceIterable<T>- Returns:
- an iterator over the contextual references of the disambiguated beans
- See Also:
DefaultBean
-
-