Package io.quarkus.arc.impl
Class InstanceImpl<T>
- java.lang.Object
-
- io.quarkus.arc.impl.InstanceImpl<T>
-
- All Implemented Interfaces:
InjectableInstance<T>,Iterable<T>,javax.enterprise.inject.Instance<T>,javax.inject.Provider<T>
public class InstanceImpl<T> extends Object implements InjectableInstance<T>
- Author:
- Martin Kouba
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearCache()Removes the cached result of theProvider.get()operation.voiddestroy(Object instance)Tget()InstanceHandle<T>getHandle()Iterable<InstanceHandle<T>>handles()booleanhasDependentInstances()booleanisAmbiguous()booleanisUnsatisfied()Iterator<T>iterator()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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
select
public InjectableInstance<T> select(Annotation... qualifiers)
- Specified by:
selectin interfaceInjectableInstance<T>- Specified by:
selectin interfacejavax.enterprise.inject.Instance<T>
-
select
public <U extends T> InjectableInstance<U> select(Class<U> subtype, Annotation... qualifiers)
- Specified by:
selectin interfaceInjectableInstance<T>- Specified by:
selectin interfacejavax.enterprise.inject.Instance<T>
-
select
public <U extends T> InjectableInstance<U> select(javax.enterprise.util.TypeLiteral<U> subtype, Annotation... qualifiers)
- Specified by:
selectin interfaceInjectableInstance<T>- Specified by:
selectin interfacejavax.enterprise.inject.Instance<T>
-
isUnsatisfied
public boolean isUnsatisfied()
- Specified by:
isUnsatisfiedin interfacejavax.enterprise.inject.Instance<T>
-
isAmbiguous
public boolean isAmbiguous()
- Specified by:
isAmbiguousin interfacejavax.enterprise.inject.Instance<T>
-
destroy
public void destroy(Object instance)
- Specified by:
destroyin interfacejavax.enterprise.inject.Instance<T>
-
getHandle
public InstanceHandle<T> getHandle()
- Specified by:
getHandlein interfaceInjectableInstance<T>
-
handles
public Iterable<InstanceHandle<T>> handles()
- Specified by:
handlesin interfaceInjectableInstance<T>
-
hasDependentInstances
public boolean hasDependentInstances()
-
clearCache
public void clearCache()
Description copied from interface:InjectableInstanceRemoves the cached result of theProvider.get()operation. If the cached result was a contextual reference of aDependentbean, destroy the reference as well.- Specified by:
clearCachein interfaceInjectableInstance<T>- See Also:
WithCaching
-
-