- All Implemented Interfaces:
- javax.enterprise.context.spi.AlterableContext, javax.enterprise.context.spi.Context, org.jboss.weld.context.BoundContext<javax.servlet.http.HttpSession>, org.jboss.weld.context.ManagedContext
public class HttpSessionDestructionContext
extends AbstractBoundContext<javax.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