Package org.jboss.weld.contexts.bound
Class BoundRequestContextImpl
- java.lang.Object
-
- org.jboss.weld.contexts.AbstractContext
-
- org.jboss.weld.contexts.AbstractManagedContext
-
- org.jboss.weld.contexts.AbstractBoundContext<Map<String,Object>>
-
- org.jboss.weld.contexts.bound.BoundRequestContextImpl
-
- All Implemented Interfaces:
AlterableContext,Context,BoundRequestContext,BoundContext<Map<String,Object>>,ManagedContext,RequestContext,WeldAlterableContext
public class BoundRequestContextImpl extends AbstractBoundContext<Map<String,Object>> implements BoundRequestContext
-
-
Constructor Summary
Constructors Constructor Description BoundRequestContextImpl(String contextId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactivate()Activate the Context.booleanassociate(Map<String,Object> storage)Associate the context with the storage (for this thread).voiddeactivate()Deactivate the Context, destroying any instances if the context is invalid.Class<? extends Annotation>getScope()Get the scope type of the context object.voidinvalidate()Mark the context as due for destruction when deactivate is called.-
Methods inherited from class org.jboss.weld.contexts.AbstractBoundContext
cleanup, clearAndSet, dissociate, getAllContextualInstances, getBeanStore, setBeanStore
-
Methods inherited from class org.jboss.weld.contexts.AbstractManagedContext
isActive, isValid, removeState, setActive
-
Methods inherited from class org.jboss.weld.contexts.AbstractContext
checkContextInitialized, destroy, destroy, get, get, getContextual, getId, getServiceRegistry, isMultithreaded
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.enterprise.context.spi.AlterableContext
destroy
-
Methods inherited from interface org.jboss.weld.context.BoundContext
dissociate
-
Methods inherited from interface org.jboss.weld.context.WeldAlterableContext
clearAndSet, getAllContextualInstances
-
-
-
-
Constructor Detail
-
BoundRequestContextImpl
public BoundRequestContextImpl(String contextId)
-
-
Method Detail
-
getScope
public Class<? extends Annotation> getScope()
Description copied from interface:ContextGet the scope type of the context object.
-
associate
public boolean associate(Map<String,Object> storage)
Description copied from interface:BoundContextAssociate the context with the storage (for this thread). OnceBoundContext.associate(Object)has been called, further calls toBoundContext.associate(Object)will be ignored, until the context has been subsequentlyBoundContext.dissociate(Object)from the storage.- Specified by:
associatein interfaceBoundContext<Map<String,Object>>- Parameters:
storage- the external storage- Returns:
- true if the storage was attached, otherwise false
-
activate
public void activate()
Description copied from interface:ManagedContextActivate the Context.- Specified by:
activatein interfaceManagedContext- Overrides:
activatein classAbstractBoundContext<Map<String,Object>>
-
deactivate
public void deactivate()
Description copied from interface:ManagedContextDeactivate the Context, destroying any instances if the context is invalid.- Specified by:
deactivatein interfaceManagedContext- Overrides:
deactivatein classAbstractBoundContext<Map<String,Object>>
-
invalidate
public void invalidate()
Description copied from interface:ManagedContextMark the context as due for destruction when deactivate is called.- Specified by:
invalidatein interfaceManagedContext- Overrides:
invalidatein classAbstractManagedContext
-
-