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 Constructor Description HttpSessionDestructionContext(String contextId, BeanIdentifierIndex index)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanassociate(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, setBeanStore
-
Methods inherited from class org.jboss.weld.contexts.AbstractManagedContext
invalidate, isActive, isValid, removeState, setActive
-
Methods inherited from class org.jboss.weld.contexts.AbstractContext
checkContextInitialized, destroy, destroy, get, get, getContextual, getId, getServiceRegistry, isMultithreaded
-
-
-
-
Constructor Detail
-
HttpSessionDestructionContext
public HttpSessionDestructionContext(String contextId, BeanIdentifierIndex index)
-
-
Method Detail
-
associate
public boolean associate(jakarta.servlet.http.HttpSession session)
-
getScope
public Class<? extends Annotation> getScope()
-
-