T - public abstract class AbstractCDI<T> extends CDI<T>
getCallingClassName() method.| Modifier and Type | Field and Description |
|---|---|
protected Set<String> |
knownClassNames |
configuredProvider, discoveredProviders| Constructor and Description |
|---|
AbstractCDI() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy(T instance)
When called, the container destroys the instance if the active context object for the scope
type of the bean supports destroying bean instances.
|
T |
get()
Provides a fully-constructed and injected instance of
T. |
protected String |
getCallingClassName()
Examines
StackTraceElements to figure out which class invoked a method on CDI. |
protected Instance<T> |
getInstance()
Subclasses are allowed to override the default behavior, i.e. to cache instance per BeanManager.
|
boolean |
isAmbiguous()
Determines if there is more than one bean that matches the required type and qualifiers and is eligible for injection
into the class into which the parent Instance was injected.
|
boolean |
isUnsatisfied()
Determines if there is no bean that matches the required type and qualifiers and is eligible for injection into the class
into which the parent Instance was injected.
|
Iterator<T> |
iterator() |
Instance<T> |
select(Annotation... qualifiers)
Obtains a child Instance for the given additional required qualifiers.
|
<U extends T> |
select(Class<U> subtype,
Annotation... qualifiers)
Obtains a child Instance for the given required type and additional required qualifiers.
|
<U extends T> |
select(TypeLiteral<U> subtype,
Annotation... qualifiers)
Obtains a child Instance for the given required type and additional required qualifiers.
|
current, getBeanManager, setCDIProviderclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic T get()
ProviderT.public Instance<T> select(Annotation... qualifiers)
InstanceObtains a child Instance for the given additional required qualifiers.
qualifiers - the additional required qualifierspublic <U extends T> Instance<U> select(Class<U> subtype, Annotation... qualifiers)
InstanceObtains a child Instance for the given required type and additional required qualifiers.
U - the required typesubtype - a Class representing the required typequalifiers - the additional required qualifierspublic <U extends T> Instance<U> select(TypeLiteral<U> subtype, Annotation... qualifiers)
InstanceObtains a child Instance for the given required type and additional required qualifiers.
U - the required typesubtype - a TypeLiteral representing the required typequalifiers - the additional required qualifierspublic boolean isUnsatisfied()
InstanceDetermines if there is no bean that matches the required type and qualifiers and is eligible for injection into the class into which the parent Instance was injected.
public boolean isAmbiguous()
InstanceDetermines if there is more than one bean that matches the required type and qualifiers and is eligible for injection into the class into which the parent Instance was injected.
public void destroy(T instance)
InstanceWhen called, the container destroys the instance if the active context object for the scope type of the bean supports destroying bean instances. All normal scoped built-in contexts support destroying bean instances.
The instance passed should either be a dependent scoped bean instance, or the client proxy for a normal scoped bean instance.
instance - the instance to destroyprotected String getCallingClassName()
StackTraceElements to figure out which class invoked a method on CDI.Copyright © 2016. All Rights Reserved.