T - public abstract class AbstractCDI<T> extends javax.enterprise.inject.spi.CDI<T> implements WeldInstance<T>
getCallingClassName() method.WeldInstance.Handler<T>| Modifier and Type | Field and Description |
|---|---|
protected Set<String> |
knownClassNames |
| Constructor and Description |
|---|
AbstractCDI() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy(T instance) |
T |
get() |
protected String |
getCallingClassName()
Examines
StackTraceElements to figure out which class invoked a method on CDI. |
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.
|
protected WeldInstance<T> |
getInstance()
Subclasses are allowed to override the default behavior, i.e. to cache instance per BeanManager.
|
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() |
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) |
current, getBeanManager, setCDIProviderclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic 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 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>protected String getCallingClassName()
StackTraceElements to figure out which class invoked a method on CDI.protected WeldInstance<T> getInstance()
Instance the relevant calls are delegated toCopyright © 2016. All rights reserved.