com.liferay.portal.servlet
Class SharedSessionAttributeListener

java.lang.Object
  extended by com.liferay.portal.servlet.SharedSessionAttributeListener
All Implemented Interfaces:
java.util.EventListener, javax.servlet.http.HttpSessionAttributeListener, javax.servlet.http.HttpSessionListener

public class SharedSessionAttributeListener
extends java.lang.Object
implements javax.servlet.http.HttpSessionAttributeListener, javax.servlet.http.HttpSessionListener

View Source

Listener used to help manage shared session attributes into a cache. This cache is more thread safe than the HttpSession and leads to fewer problems with shared session attributes being modified out of sequence.

Author:
Michael C. Han

Constructor Summary
SharedSessionAttributeListener()
           
 
Method Summary
 void attributeAdded(javax.servlet.http.HttpSessionBindingEvent event)
           
 void attributeRemoved(javax.servlet.http.HttpSessionBindingEvent event)
           
 void attributeReplaced(javax.servlet.http.HttpSessionBindingEvent event)
           
 void sessionCreated(javax.servlet.http.HttpSessionEvent event)
           
 void sessionDestroyed(javax.servlet.http.HttpSessionEvent event)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SharedSessionAttributeListener

public SharedSessionAttributeListener()
Method Detail

attributeAdded

public void attributeAdded(javax.servlet.http.HttpSessionBindingEvent event)
Specified by:
attributeAdded in interface javax.servlet.http.HttpSessionAttributeListener

attributeRemoved

public void attributeRemoved(javax.servlet.http.HttpSessionBindingEvent event)
Specified by:
attributeRemoved in interface javax.servlet.http.HttpSessionAttributeListener

attributeReplaced

public void attributeReplaced(javax.servlet.http.HttpSessionBindingEvent event)
Specified by:
attributeReplaced in interface javax.servlet.http.HttpSessionAttributeListener

sessionCreated

public void sessionCreated(javax.servlet.http.HttpSessionEvent event)
Specified by:
sessionCreated in interface javax.servlet.http.HttpSessionListener

sessionDestroyed

public void sessionDestroyed(javax.servlet.http.HttpSessionEvent event)
Specified by:
sessionDestroyed in interface javax.servlet.http.HttpSessionListener