org.mycore.common.events
Class MCRServletContextListener

java.lang.Object
  extended by org.mycore.common.events.MCRServletContextListener
All Implemented Interfaces:
EventListener, ServletContextListener

public class MCRServletContextListener
extends Object
implements ServletContextListener

is a shutdown hook for the current ServletContext. For this class to register itself as a shutdown hook to the current ServletContext please add the following code to your web.xml (allready done in MyCoRe-shipped version):

      <listener>
            <listener-class>org.mycore.common.events.MCRServletContextListener</listener-class>
      </listener>
 

Since:
1.3
Author:
Thomas Scheffler (yagee)
See Also:
MCRShutdownHandler

Constructor Summary
MCRServletContextListener()
           
 
Method Summary
 void contextDestroyed(ServletContextEvent sce)
           
 void contextInitialized(ServletContextEvent sce)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MCRServletContextListener

public MCRServletContextListener()
Method Detail

contextInitialized

public void contextInitialized(ServletContextEvent sce)
Specified by:
contextInitialized in interface ServletContextListener

contextDestroyed

public void contextDestroyed(ServletContextEvent sce)
Specified by:
contextDestroyed in interface ServletContextListener