org.jasig.portal.spring.web.context.support
Class ApplicationContextDelagatingSessionListener

java.lang.Object
  extended by org.jasig.portal.spring.web.context.support.ApplicationContextDelagatingSessionListener
All Implemented Interfaces:
EventListener, HttpSessionListener

public class ApplicationContextDelagatingSessionListener
extends Object
implements HttpSessionListener

HttpSessionListener that publishes HttpSessionCreatedEvent and HttpSessionDestroyedEvent events to the WebApplicationContext retrieved using WebApplicationContextUtils.getRequiredWebApplicationContext(ServletContext)

Version:
$Revision$
Author:
Eric Dalquist

Constructor Summary
ApplicationContextDelagatingSessionListener()
           
 
Method Summary
protected  WebApplicationContext getWebApplicationContext(HttpSession session)
          Retrieves the WebApplicationContextUtils for the HttpSession.
 void sessionCreated(HttpSessionEvent se)
           
 void sessionDestroyed(HttpSessionEvent se)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplicationContextDelagatingSessionListener

public ApplicationContextDelagatingSessionListener()
Method Detail

sessionCreated

public void sessionCreated(HttpSessionEvent se)
Specified by:
sessionCreated in interface HttpSessionListener

sessionDestroyed

public void sessionDestroyed(HttpSessionEvent se)
Specified by:
sessionDestroyed in interface HttpSessionListener

getWebApplicationContext

protected WebApplicationContext getWebApplicationContext(HttpSession session)
Retrieves the WebApplicationContextUtils for the HttpSession.



Copyright © 2010 Jasig. All Rights Reserved.