T - public class InstanceImpl<T> extends AbstractFacade<T,Instance<T>> implements Instance<T>, Serializable
AbstractFacade.AbstractFacadeSerializationProxy<T,X>| Modifier and Type | Method and Description |
|---|---|
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.
|
Iterator<T> |
iterator() |
static <I> Instance<I> |
of(InjectionPoint injectionPoint,
CreationalContext<I> creationalContext,
BeanManagerImpl beanManager) |
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.
|
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 String toString()
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(Annotation... qualifiers)
InstanceObtains a child Instance for the given additional required qualifiers.
public <U extends T> Instance<U> select(Class<U> subtype, 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, 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 qualifiersCopyright © 2013 Seam Framework. All Rights Reserved.