T - public interface WeldCreationalContext<T> extends CreationalContext<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() |
InjectionPoint |
loadInjectionPoint()
Loads a stored
InjectionPoint instance. |
void |
release()
Destroys all dependent objects of the instance which is being destroyed, by passing each dependent object to
Contextual.destroy(Object, CreationalContext) . |
void |
storeContextual()
Indicates that the Contextual should be stored so that it is accessible to a disposer method.
|
void |
storeInjectionPoint(InjectionPoint ip)
Store an injection point so that it can be accessed from a disposer method.
|
push<S> WeldCreationalContext<S> getCreationalContext(Contextual<S> Contextual)
<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.void storeContextual()
void storeInjectionPoint(InjectionPoint ip)
InjectionPoint loadInjectionPoint()
InjectionPoint instance. The instance is only available if required by a disposer method.
DO NOT use this method for obtaining the InjectionPoint reference from elsewhere. Use CurrentInjectionPoint
instead.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 © 2012 Seam Framework. All Rights Reserved.