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:
jakarta.enterprise.context.spi.AlterableContext,jakarta.enterprise.context.spi.Context,BoundRequestContext,BoundContext<Map<String,,Object>> ManagedContext,RequestContext,WeldAlterableContext
public class BoundRequestContextImpl
extends AbstractBoundContext<Map<String,Object>>
implements BoundRequestContext
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate()Activate the Context.booleanAssociate the context with the storage (for this thread).voidDeactivate the Context, destroying any instances if the context is invalid.Class<? extends Annotation>getScope()voidMark the context as due for destruction when deactivate is called.Methods inherited from class org.jboss.weld.contexts.AbstractBoundContext
cleanup, clearAndSet, dissociate, getAllContextualInstances, getBeanStore, setBeanStoreMethods inherited from class org.jboss.weld.contexts.AbstractManagedContext
isActive, isValid, removeState, setActiveMethods inherited from class org.jboss.weld.contexts.AbstractContext
checkContextInitialized, destroy, destroy, get, get, getContextual, getId, getServiceRegistry, isMultithreadedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jakarta.enterprise.context.spi.AlterableContext
destroyMethods inherited from interface org.jboss.weld.context.BoundContext
dissociateMethods inherited from interface jakarta.enterprise.context.spi.Context
get, get, isActiveMethods inherited from interface org.jboss.weld.context.WeldAlterableContext
clearAndSet, getAllContextualInstances
-
Constructor Details
-
BoundRequestContextImpl
-
-
Method Details
-
getScope
- Specified by:
getScopein interfacejakarta.enterprise.context.spi.Context
-
associate
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
-