org.apache.beehive.netui.pageflow
Class HttpSessionMutexListener
Object
HttpSessionMutexListener
- All Implemented Interfaces:
- EventListener, HttpSessionListener
public final class HttpSessionMutexListener
- extends Object
- implements HttpSessionListener
Class that implements an HttpSessionListener
that adds mutex objects to the
HttpSession
. This listener adds a session scoped attribute
to the key ServletUtils.SESSION_MUTEX_ATTRIBUTE
that can be used as a safe reference to lock access to the session. In addition
it adds a session scoped attribute that the NameService
uses as a safe
object to lock on for synchronizing lazy initialization of the session scoped
NameService object.
To use this listener, it needs to be registered in web.xml
.
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HttpSessionMutexListener
public HttpSessionMutexListener()
sessionCreated
public void sessionCreated(HttpSessionEvent httpSessionEvent)
- Specified by:
sessionCreated
in interface HttpSessionListener
sessionDestroyed
public void sessionDestroyed(HttpSessionEvent httpSessionEvent)
- Specified by:
sessionDestroyed
in interface HttpSessionListener