Class ServletContextAttributeListenerImpl

java.lang.Object
com.tangosol.util.Base
com.tangosol.coherence.servlet.api23.ServletContextAttributeListenerImpl
All Implemented Interfaces:
EventListener, javax.servlet.ServletContextAttributeListener

public class ServletContextAttributeListenerImpl extends Base implements javax.servlet.ServletContextAttributeListener
An implementation of the ServletContextAttributeListener interface that will listen to the application server events and translate them (wrapping the ServletContext) and routing them to the application listeners.
Version:
Coherence 2.3
Author:
cp 2003.07.23
  • Constructor Details

    • ServletContextAttributeListenerImpl

      public ServletContextAttributeListenerImpl()
      Public default constructor; required by spec.
  • Method Details

    • attributeAdded

      public void attributeAdded(javax.servlet.ServletContextAttributeEvent evt)
      Notification that a new attribute was added to the servlet context. Called after the attribute is added.
      Specified by:
      attributeAdded in interface javax.servlet.ServletContextAttributeListener
      Parameters:
      evt - the ServletContextAttributeEvent
    • attributeRemoved

      public void attributeRemoved(javax.servlet.ServletContextAttributeEvent evt)
      Notification that an existing attribute has been remved from the servlet context. Called after the attribute is removed.
      Specified by:
      attributeRemoved in interface javax.servlet.ServletContextAttributeListener
      Parameters:
      evt - the ServletContextAttributeEvent
    • attributeReplaced

      public void attributeReplaced(javax.servlet.ServletContextAttributeEvent evt)
      Notification that an attribute on the servlet context has been replaced. Called after the attribute is replaced.
      Specified by:
      attributeReplaced in interface javax.servlet.ServletContextAttributeListener
      Parameters:
      evt - the ServletContextAttributeEvent
    • getSessionHelper

      protected SessionHelper getSessionHelper()
      Get the Coherence SessionHelper.
      Returns:
      the Coherence SessionHelper
    • dispatch

      protected void dispatch(int nEvent, javax.servlet.ServletContextAttributeEvent evt)
      Dispatch a wrapped event to the application listeners.
      Parameters:
      nEvent - the internal enum that identifies the event name
      evt - the application server's ServletContextAttributeEvent