public class CreationalContextImpl<T> extends Object implements javax.enterprise.context.spi.CreationalContext<T>, WeldCreationalContext<T>, Serializable
| Constructor and Description |
|---|
CreationalContextImpl(javax.enterprise.context.spi.Contextual<T> contextual) |
public CreationalContextImpl(javax.enterprise.context.spi.Contextual<T> contextual)
public void push(T incompleteInstance)
push in interface javax.enterprise.context.spi.CreationalContext<T>public <S> CreationalContextImpl<S> getCreationalContext(javax.enterprise.context.spi.Contextual<S> contextual)
public <S> CreationalContextImpl<S> getProducerReceiverCreationalContext(javax.enterprise.context.spi.Contextual<S> contextual)
WeldCreationalContextCreationalContext shares nothing but incomplete instances.CreationalContext for a producer recieverWELD-1513public <S> S getIncompleteInstance(javax.enterprise.context.spi.Contextual<S> bean)
public boolean containsIncompleteInstance(javax.enterprise.context.spi.Contextual<?> bean)
public void addDependentInstance(org.jboss.weld.context.api.ContextualInstance<?> contextualInstance)
public void release()
release in interface javax.enterprise.context.spi.CreationalContext<T>public CreationalContextImpl<?> getParentCreationalContext()
CreationalContext or null if there isn't any parent.public List<org.jboss.weld.context.api.ContextualInstance<?>> getDependentInstances()
protected Object writeReplace() throws ObjectStreamException
ObjectStreamExceptionpublic void addDependentResourceReference(org.jboss.weld.injection.spi.ResourceReference<?> resourceReference)
ResourceReference as a dependency. ResourceReference.release() will be called on every ResourceReference once this
CreationalContext instance is released.public boolean destroyDependentInstance(T instance)
instance - public javax.enterprise.context.spi.Contextual<T> getContextual()
Contextual for which this CreationalContext is created.public List<org.jboss.weld.construction.api.AroundConstructCallback<T>> getAroundConstructCallbacks()
public void setConstructorInterceptionSuppressed(boolean value)
setConstructorInterceptionSuppressed in interface org.jboss.weld.construction.api.WeldCreationalContext<T>public boolean isConstructorInterceptionSuppressed()
isConstructorInterceptionSuppressed in interface org.jboss.weld.construction.api.WeldCreationalContext<T>public void registerAroundConstructCallback(org.jboss.weld.construction.api.AroundConstructCallback<T> callback)
registerAroundConstructCallback in interface org.jboss.weld.construction.api.WeldCreationalContext<T>public InterceptionContext getAroundConstructInterceptionContext()
null if no such interceptors were appliedpublic void setAroundConstructInterceptionContext(InterceptionContext aroundConstructInterceptionContext)
Copyright © 2017. All rights reserved.