T - public interface WeldCreationalContext<T> extends WeldCreationalContext<T>
| Modifier and Type | Method and Description |
|---|---|
void |
addDependentInstance(ContextualInstance<?> contextualInstance) |
void |
addDependentResourceReference(ResourceReference<?> resourceReference)
Register a
ResourceReference as a dependency. |
boolean |
containsIncompleteInstance(Contextual<?> bean) |
boolean |
destroyDependentInstance(T instance)
Destroys dependent instance
|
Contextual<T> |
getContextual() |
<S> WeldCreationalContext<S> |
getCreationalContext(Contextual<S> contextual) |
List<ContextualInstance<?>> |
getDependentInstances()
Returns an unmodifiable list of dependent instances.
|
<S> S |
getIncompleteInstance(Contextual<S> bean) |
WeldCreationalContext<?> |
getParentCreationalContext() |
<S> WeldCreationalContext<S> |
getProducerReceiverCreationalContext(Contextual<S> contextual)
The returned
CreationalContext shares nothing but incomplete instances. |
void |
release()
Destroys all dependent objects of the instance which is being destroyed, by passing each dependent object to
Contextual.destroy(Object, CreationalContext) . |
isConstructorInterceptionSuppressed, registerAroundConstructCallback, setConstructorInterceptionSuppressedpush<S> WeldCreationalContext<S> getCreationalContext(Contextual<S> contextual)
<S> WeldCreationalContext<S> getProducerReceiverCreationalContext(Contextual<S> contextual)
CreationalContext shares nothing but incomplete instances.contextual - CreationalContext for a producer recieverWELD-1513<S> S getIncompleteInstance(Contextual<S> bean)
boolean containsIncompleteInstance(Contextual<?> bean)
void addDependentInstance(ContextualInstance<?> contextualInstance)
void release()
CreationalContextContextual.destroy(Object, CreationalContext) .release in interface CreationalContext<T>WeldCreationalContext<?> getParentCreationalContext()
CreationalContext or null if there isn't any parent.Contextual<T> getContextual()
Contextual for which this CreationalContext is created.List<ContextualInstance<?>> getDependentInstances()
boolean destroyDependentInstance(T instance)
instance - void addDependentResourceReference(ResourceReference<?> resourceReference)
ResourceReference as a dependency. ResourceReference.release() will be called on every ResourceReference
once this CreationalContext instance is released.Copyright © 2013 Seam Framework. All Rights Reserved.