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 void
activate()
Activate the Context.boolean
associate(Map<String,Object> storage)
Associate the context with the storage (for this thread).void
deactivate()
Deactivate the Context, destroying any instances if the context is invalid.Class<? extends Annotation>
getScope()
Get the scope type of the context object.void
invalidate()
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 jakarta.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:Context
Get the scope type of the context object.
-
associate
public boolean associate(Map<String,Object> storage)
Description copied from interface:BoundContext
Associate 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:
associate
in 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:ManagedContext
Activate the Context.- Specified by:
activate
in interfaceManagedContext
- Overrides:
activate
in classAbstractBoundContext<Map<String,Object>>
-
deactivate
public void deactivate()
Description copied from interface:ManagedContext
Deactivate the Context, destroying any instances if the context is invalid.- Specified by:
deactivate
in interfaceManagedContext
- Overrides:
deactivate
in classAbstractBoundContext<Map<String,Object>>
-
invalidate
public void invalidate()
Description copied from interface:ManagedContext
Mark the context as due for destruction when deactivate is called.- Specified by:
invalidate
in interfaceManagedContext
- Overrides:
invalidate
in classAbstractManagedContext
-
-