Package org.jboss.weld.context
Class ForwardingWeldCreationalContext<T>
- java.lang.Object
-
- org.jboss.weld.context.ForwardingWeldCreationalContext<T>
-
- All Implemented Interfaces:
javax.enterprise.context.spi.CreationalContext<T>,org.jboss.weld.construction.api.WeldCreationalContext<T>,WeldCreationalContext<T>
public abstract class ForwardingWeldCreationalContext<T> extends Object implements WeldCreationalContext<T>
- Author:
- pmuir
-
-
Constructor Summary
Constructors Constructor Description ForwardingWeldCreationalContext()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidaddDependentInstance(org.jboss.weld.context.api.ContextualInstance<?> contextualInstance)voidaddDependentResourceReference(org.jboss.weld.injection.spi.ResourceReference<?> resourceReference)Register aResourceReferenceas a dependency.booleancontainsIncompleteInstance(javax.enterprise.context.spi.Contextual<?> bean)protected abstract WeldCreationalContext<T>delegate()booleanequals(Object obj)<S> WeldCreationalContext<S>getCreationalContext(javax.enterprise.context.spi.Contextual<S> Contextual)<S> SgetIncompleteInstance(javax.enterprise.context.spi.Contextual<S> bean)inthashCode()voidpush(T incompleteInstance)voidrelease()StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.jboss.weld.construction.api.WeldCreationalContext
isConstructorInterceptionSuppressed, registerAroundConstructCallback, setConstructorInterceptionSuppressed
-
Methods inherited from interface org.jboss.weld.context.WeldCreationalContext
destroyDependentInstance, getContextual, getDependentInstances, getParentCreationalContext, getProducerReceiverCreationalContext
-
-
-
-
Method Detail
-
delegate
protected abstract WeldCreationalContext<T> delegate()
-
push
public void push(T incompleteInstance)
- Specified by:
pushin interfacejavax.enterprise.context.spi.CreationalContext<T>
-
release
public void release()
- Specified by:
releasein interfacejavax.enterprise.context.spi.CreationalContext<T>- Specified by:
releasein interfaceWeldCreationalContext<T>
-
containsIncompleteInstance
public boolean containsIncompleteInstance(javax.enterprise.context.spi.Contextual<?> bean)
- Specified by:
containsIncompleteInstancein interfaceWeldCreationalContext<T>
-
getCreationalContext
public <S> WeldCreationalContext<S> getCreationalContext(javax.enterprise.context.spi.Contextual<S> Contextual)
- Specified by:
getCreationalContextin interfaceWeldCreationalContext<T>
-
getIncompleteInstance
public <S> S getIncompleteInstance(javax.enterprise.context.spi.Contextual<S> bean)
- Specified by:
getIncompleteInstancein interfaceWeldCreationalContext<T>
-
addDependentInstance
public void addDependentInstance(org.jboss.weld.context.api.ContextualInstance<?> contextualInstance)
- Specified by:
addDependentInstancein interfaceWeldCreationalContext<T>
-
addDependentResourceReference
public void addDependentResourceReference(org.jboss.weld.injection.spi.ResourceReference<?> resourceReference)
Description copied from interface:WeldCreationalContextRegister aResourceReferenceas a dependency.ResourceReference.release()will be called on everyResourceReferenceonce thisCreationalContextinstance is released.- Specified by:
addDependentResourceReferencein interfaceWeldCreationalContext<T>
-
-