T - public class InstanceImpl<T> extends AbstractFacade<T,Instance<T>> implements Instance<T>, java.io.Serializable
AbstractFacade.AbstractFacadeSerializationProxy<T,X>| 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. |
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.
|
java.util.Iterator<T> |
iterator() |
static <I> Instance<I> |
of(InjectionPoint injectionPoint,
CreationalContext<I> creationalContext,
BeanManagerImpl beanManager) |
Instance<T> |
select(java.lang.annotation.Annotation... qualifiers)
Obtains a child Instance for the given additional required qualifiers.
|
<U extends T> |
select(java.lang.Class<U> subtype,
java.lang.annotation.Annotation... qualifiers)
Obtains a child Instance for the given required type and additional required qualifiers.
|
<U extends T> |
select(TypeLiteral<U> subtype,
java.lang.annotation.Annotation... qualifiers)
Obtains a child Instance for the given required type and additional required qualifiers.
|
java.lang.String |
toString()
Gets a string representation
|
equals, getBeanManager, getCreationalContext, getFacadeType, getInjectionPoint, getQualifiers, getType, hashCodepublic static <I> Instance<I> of(InjectionPoint injectionPoint, CreationalContext<I> creationalContext, BeanManagerImpl beanManager)
public T get()
ProviderT.public java.lang.String toString()
toString in class java.lang.Objectpublic java.util.Iterator<T> iterator()
iterator in interface java.lang.Iterable<T>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.
isAmbiguous in interface Instance<T>public 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.
isUnsatisfied in interface Instance<T>public Instance<T> select(java.lang.annotation.Annotation... qualifiers)
InstanceObtains a child Instance for the given additional required qualifiers.
public <U extends T> Instance<U> select(java.lang.Class<U> subtype, java.lang.annotation.Annotation... qualifiers)
InstanceObtains a child Instance for the given required type and additional required qualifiers.
public <U extends T> Instance<U> select(TypeLiteral<U> subtype, java.lang.annotation.Annotation... qualifiers)
InstanceObtains a child Instance for the given required type and additional required qualifiers.
select in interface Instance<T>U - the required typesubtype - a TypeLiteral representing the required typequalifiers - the additional required qualifierspublic 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.
Copyright © 2014. All Rights Reserved.