@Module public class CreationalContextImpl<T> extends java.lang.Object implements CreationalContext<T>
Modifier and Type | Field and Description |
---|---|
static java.lang.Object |
NULL |
Modifier | Constructor and Description |
---|---|
protected |
CreationalContextImpl(Contextual<T> bean,
CreationalContextImpl<?> parent) |
Modifier and Type | Method and Description |
---|---|
void |
clearTarget() |
static <X> X |
find(CreationalContextImpl<?> ptr,
Contextual<X> bean) |
static <X> X |
findAny(CreationalContextImpl<?> ptr,
java.lang.Class<X> type) |
static <X> X |
findAny(CreationalContextImpl<?> ptr,
Contextual<X> bean) |
static java.lang.Object |
findByName(CreationalContextImpl<?> ptr,
java.lang.String name) |
InjectionPoint |
findInjectionPoint() |
static <X> X |
findWithNull(CreationalContextImpl<?> ptr,
Contextual<X> bean) |
<X> X |
get(Contextual<X> bean) |
<X> X |
getAny(Contextual<X> bean)
Find any bean, for disposers.
|
Contextual<T> |
getBean() |
java.lang.Object |
getDelegate() |
protected InjectionPoint |
getInjectionPoint() |
protected DependentCreationalContext<?> |
getNext() |
protected OwnerCreationalContext<?> |
getOwner() |
java.lang.Object |
getParentValue() |
T |
getValue() |
protected boolean |
isTop() |
void |
push(T value)
Pushes an incomplete instance into the creational context.
|
void |
release()
Destroys all dependent objects.
|
void |
setInjectionPoint(InjectionPoint ip) |
java.lang.String |
toString() |
protected CreationalContextImpl(Contextual<T> bean, CreationalContextImpl<?> parent)
protected boolean isTop()
public Contextual<T> getBean()
protected OwnerCreationalContext<?> getOwner()
protected DependentCreationalContext<?> getNext()
protected InjectionPoint getInjectionPoint()
public void setInjectionPoint(InjectionPoint ip)
public T getValue()
public java.lang.Object getParentValue()
public <X> X get(Contextual<X> bean)
public static <X> X find(CreationalContextImpl<?> ptr, Contextual<X> bean)
public static <X> X findWithNull(CreationalContextImpl<?> ptr, Contextual<X> bean)
public <X> X getAny(Contextual<X> bean)
public static <X> X findAny(CreationalContextImpl<?> ptr, Contextual<X> bean)
public static <X> X findAny(CreationalContextImpl<?> ptr, java.lang.Class<X> type)
public static java.lang.Object findByName(CreationalContextImpl<?> ptr, java.lang.String name)
public InjectionPoint findInjectionPoint()
public java.lang.Object getDelegate()
public void push(T value)
CreationalContext
push
in interface CreationalContext<T>
@Module public void clearTarget()
public void release()
CreationalContext
release
in interface CreationalContext<T>
public java.lang.String toString()
toString
in class java.lang.Object