com.google.code.rees.scope.conversation.context
Class ConversationCleanupListener

java.lang.Object
  extended by 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

Constructor Summary
ConversationCleanupListener()
           
 
Method Summary
 void sessionCreated(javax.servlet.http.HttpSessionEvent se)
           
 void sessionDestroyed(javax.servlet.http.HttpSessionEvent se)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConversationCleanupListener

public ConversationCleanupListener()
Method Detail

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.