| Modifier and Type | Interface and Description |
|---|---|
static interface |
WeldInstance.Handler<T>
A contextual reference handler.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
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) |
destroy, isAmbiguous, isResolvable, isUnsatisfied, streamforEach, iterator, spliteratorWeldInstance.Handler<T> getHandler()
Note that each invocation of this method results in a separate Provider.get() invocation.
javax.enterprise.inject.UnsatisfiedResolutionExceptionjavax.enterprise.inject.AmbiguousResolutionExceptionIterable<WeldInstance.Handler<T>> handlers()
Note that the returned Iterable is stateless and so each Iterable.iterator() produces a new set of handlers.
WeldInstance<T> select(Annotation... qualifiers)
select in interface javax.enterprise.inject.Instance<T><U extends T> WeldInstance<U> select(Class<U> subtype, Annotation... qualifiers)
select in interface javax.enterprise.inject.Instance<T><U extends T> WeldInstance<U> select(javax.enterprise.util.TypeLiteral<U> subtype, Annotation... qualifiers)
select in interface javax.enterprise.inject.Instance<T>Copyright © 2008–2017. All rights reserved.