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 void
clearCache()
Removes the cached result of theProvider.get()
operation.InstanceHandle<T>
getHandle()
Iterable<InstanceHandle<T>>
handles()
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, iterator, spliterator
-
-
-
-
Method Detail
-
getHandle
InstanceHandle<T> getHandle()
-
handles
Iterable<InstanceHandle<T>> handles()
-
select
InjectableInstance<T> select(Annotation... qualifiers)
- Specified by:
select
in interfacejavax.enterprise.inject.Instance<T>
-
select
<U extends T> InjectableInstance<U> select(Class<U> subtype, Annotation... qualifiers)
- Specified by:
select
in interfacejavax.enterprise.inject.Instance<T>
-
select
<U extends T> InjectableInstance<U> select(javax.enterprise.util.TypeLiteral<U> subtype, Annotation... qualifiers)
- Specified by:
select
in 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 aDependent
bean, destroy the reference as well.- See Also:
WithCaching
-
-