Class HttpSessionDestructionContext
java.lang.Object
org.jboss.weld.contexts.AbstractContext
org.jboss.weld.contexts.AbstractManagedContext
org.jboss.weld.contexts.AbstractBoundContext<jakarta.servlet.http.HttpSession>
org.jboss.weld.module.web.context.http.HttpSessionDestructionContext
- All Implemented Interfaces:
jakarta.enterprise.context.spi.AlterableContext,jakarta.enterprise.context.spi.Context,org.jboss.weld.context.BoundContext<jakarta.servlet.http.HttpSession>,org.jboss.weld.context.ManagedContext,org.jboss.weld.context.WeldAlterableContext
public class HttpSessionDestructionContext
extends AbstractBoundContext<jakarta.servlet.http.HttpSession>
This special http session context is necessary because HttpSessionListeners that are called when a session
is being destroyed outside the scope of a HTTP request, need to be able to access the session context.
We can't simply activate the regular HttpSessionContext, since we would need an HttpServletRequest to associate
and activate the context.
- Author:
- Marko Luksa
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanassociate(jakarta.servlet.http.HttpSession session) Class<? extends Annotation>getScope()Methods inherited from class org.jboss.weld.contexts.AbstractBoundContext
activate, cleanup, clearAndSet, deactivate, dissociate, getAllContextualInstances, getBeanStore, setBeanStoreMethods inherited from class org.jboss.weld.contexts.AbstractManagedContext
invalidate, 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 jakarta.enterprise.context.spi.Context
get, get, isActive
-
Constructor Details
-
HttpSessionDestructionContext
-
-
Method Details
-
associate
public boolean associate(jakarta.servlet.http.HttpSession session) -
getScope
-