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() |
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, setConstructorInterceptionSuppressed
push
<S> WeldCreationalContext<S> getCreationalContext(Contextual<S> Contextual)
<S> S getIncompleteInstance(Contextual<S> bean)
boolean containsIncompleteInstance(Contextual<?> bean)
void addDependentInstance(ContextualInstance<?> contextualInstance)
void release()
CreationalContext
Contextual.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.