com.google.code.rees.scope.conversation.context
Class ConversationCleanupListener
java.lang.Object
com.google.code.rees.scope.conversation.context.ConversationCleanupListener
- All Implemented Interfaces:
- EventListener, javax.servlet.http.HttpSessionListener
@WebListener
public class ConversationCleanupListener
- extends Object
- implements javax.servlet.http.HttpSessionListener
This class listens for the destruction of sessions and cleans up that sessions conversation resources.
With Servlet API 3.0+, this class is auto-discovered using the WebListener annotation. In earlier
API versions, it must be configured in the web.xml (or not at all if cleanup is not a concern).
- Author:
- rees.byars
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConversationCleanupListener
public ConversationCleanupListener()
sessionCreated
public void sessionCreated(javax.servlet.http.HttpSessionEvent se)
- Specified by:
sessionCreated in interface javax.servlet.http.HttpSessionListener
sessionDestroyed
public void sessionDestroyed(javax.servlet.http.HttpSessionEvent se)
- Specified by:
sessionDestroyed in interface javax.servlet.http.HttpSessionListener
Copyright © 2012-2013. All Rights Reserved.