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 Details

  • Method Details

    • associate

      public boolean associate(jakarta.servlet.http.HttpSession session)
    • getScope

      public Class<? extends Annotation> getScope()