T
- public class InstanceImpl<T> extends AbstractFacade<T,Instance<T>> implements Instance<T>, Serializable
AbstractFacade.AbstractFacadeSerializationProxy<T,X>
Modifier and Type | Method and Description |
---|---|
void |
destroy(T instance)
On
Instance.destroy(Object) being 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.
|
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, hashCode
public static <I> Instance<I> of(InjectionPoint injectionPoint, CreationalContext<I> creationalContext, BeanManagerImpl beanManager)
public T get()
Provider
T
.public String toString()
public boolean isAmbiguous()
Instance
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.
isAmbiguous
in interface Instance<T>
public boolean isUnsatisfied()
Instance
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.
isUnsatisfied
in interface Instance<T>
public Instance<T> select(Annotation... qualifiers)
Instance
Obtains a child Instance for the given additional required qualifiers.
public <U extends T> Instance<U> select(Class<U> subtype, Annotation... qualifiers)
Instance
Obtains a child Instance for the given required type and additional required qualifiers.
public <U extends T> Instance<U> select(TypeLiteral<U> subtype, Annotation... qualifiers)
Instance
Obtains 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)
Instance
On Instance.destroy(Object)
being 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 © 2013 Seam Framework. All Rights Reserved.