T - public class InstanceImpl<T> extends AbstractFacade<T,javax.enterprise.inject.Instance<T>> implements WeldInstance<T>, Serializable
AbstractFacade.AbstractFacadeSerializationProxy<T,X>WeldInstance.Handler<T>| Modifier and Type | Method and Description |
|---|---|
void |
destroy(T instance) |
T |
get() |
WeldInstance.Handler<T> |
getHandler()
Obtains a contextual reference handler for the bean that has the required type and required qualifiers and is eligible for injection.
|
Iterable<WeldInstance.Handler<T>> |
handlers()
Allows to iterate over contextual reference handlers for all the beans that have the required type and required qualifiers and are eligible for
injection.
|
boolean |
isAmbiguous() |
boolean |
isResolvable() |
boolean |
isUnsatisfied() |
Iterator<T> |
iterator() |
static <I> javax.enterprise.inject.Instance<I> |
of(javax.enterprise.inject.spi.InjectionPoint injectionPoint,
javax.enterprise.context.spi.CreationalContext<I> creationalContext,
BeanManagerImpl beanManager) |
WeldInstance<T> |
select(Annotation... qualifiers) |
<U extends T> |
select(Class<U> subtype,
Annotation... qualifiers) |
<U extends T> |
select(javax.enterprise.util.TypeLiteral<U> subtype,
Annotation... qualifiers) |
String |
toString()
Gets a string representation
|
equals, getBeanManager, getCreationalContext, getFacadeType, getInjectionPoint, getQualifiers, getType, hashCodeclone, finalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic static <I> javax.enterprise.inject.Instance<I> of(javax.enterprise.inject.spi.InjectionPoint injectionPoint,
javax.enterprise.context.spi.CreationalContext<I> creationalContext,
BeanManagerImpl beanManager)
public String toString()
public boolean isAmbiguous()
isAmbiguous in interface javax.enterprise.inject.Instance<T>public boolean isUnsatisfied()
isUnsatisfied in interface javax.enterprise.inject.Instance<T>public WeldInstance<T> select(Annotation... qualifiers)
select in interface javax.enterprise.inject.Instance<T>select in interface WeldInstance<T>public <U extends T> WeldInstance<U> select(Class<U> subtype, Annotation... qualifiers)
select in interface javax.enterprise.inject.Instance<T>select in interface WeldInstance<T>public <U extends T> WeldInstance<U> select(javax.enterprise.util.TypeLiteral<U> subtype, Annotation... qualifiers)
select in interface javax.enterprise.inject.Instance<T>select in interface WeldInstance<T>public void destroy(T instance)
destroy in interface javax.enterprise.inject.Instance<T>public WeldInstance.Handler<T> getHandler()
WeldInstance
Note that each invocation of this method results in a separate Provider.get() invocation.
getHandler in interface WeldInstance<T>public boolean isResolvable()
isResolvable in interface WeldInstance<T>true if satisfied and not ambiguous, false otherwiseInstance.isAmbiguous(),
Instance.isUnsatisfied()public Iterable<WeldInstance.Handler<T>> handlers()
WeldInstance
Note that the returned Iterable is stateless and so each Iterable.iterator() produces a new set of handlers.
handlers in interface WeldInstance<T>Copyright © 2016. All rights reserved.