public abstract class ForwardingWeldInstance<T> extends Object implements WeldInstance<T>
Instance.WeldInstance.Handler<T>| Constructor and Description |
|---|
ForwardingWeldInstance() |
| Modifier and Type | Method and Description |
|---|---|
abstract WeldInstance<T> |
delegate() |
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 |
isUnsatisfied() |
Iterator<T> |
iterator() |
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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic abstract WeldInstance<T> delegate()
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 boolean isUnsatisfied()
isUnsatisfied in interface javax.enterprise.inject.Instance<T>public boolean isAmbiguous()
isAmbiguous in interface javax.enterprise.inject.Instance<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 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 © 2017. All rights reserved.