public abstract class ForwardingWeldCreationalContext<T> extends Object implements WeldCreationalContext<T>
Constructor and Description |
---|
ForwardingWeldCreationalContext() |
Modifier and Type | Method and Description |
---|---|
void |
addDependentInstance(ContextualInstance<?> contextualInstance) |
void |
addDependentResourceReference(ResourceReference<?> resourceReference)
Register a
ResourceReference as a dependency. |
boolean |
containsIncompleteInstance(Contextual<?> bean) |
protected abstract WeldCreationalContext<T> |
delegate() |
boolean |
equals(Object obj) |
<S> WeldCreationalContext<S> |
getCreationalContext(Contextual<S> Contextual) |
<S> S |
getIncompleteInstance(Contextual<S> bean) |
int |
hashCode() |
void |
push(T incompleteInstance)
Registers an incompletely initialized contextual instance the with the container.
|
void |
release()
Destroys all dependent objects of the instance which is being destroyed, by passing each dependent object to
Contextual.destroy(Object, CreationalContext) . |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
destroyDependentInstance, getContextual, getDependentInstances, getParentCreationalContext, getProducerReceiverCreationalContext
isConstructorInterceptionSuppressed, registerAroundConstructCallback, setConstructorInterceptionSuppressed
protected abstract WeldCreationalContext<T> delegate()
public void push(T incompleteInstance)
CreationalContext
Contextual.create(CreationalContext)
.push
in interface CreationalContext<T>
incompleteInstance
- the incompletely initialized instancepublic void release()
CreationalContext
Contextual.destroy(Object, CreationalContext)
.release
in interface CreationalContext<T>
public boolean containsIncompleteInstance(Contextual<?> bean)
public <S> WeldCreationalContext<S> getCreationalContext(Contextual<S> Contextual)
public <S> S getIncompleteInstance(Contextual<S> bean)
public void addDependentInstance(ContextualInstance<?> contextualInstance)
public void addDependentResourceReference(ResourceReference<?> resourceReference)
WeldCreationalContext
ResourceReference
as a dependency. ResourceReference.release()
will be called on every ResourceReference
once this CreationalContext
instance is released.Copyright © 2015. All Rights Reserved.