Class MCRServletContextListener

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

public class MCRServletContextListener extends Object implements jakarta.servlet.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:
  • Constructor Details

    • MCRServletContextListener

      public MCRServletContextListener()
  • Method Details

    • contextInitialized

      public void contextInitialized(jakarta.servlet.ServletContextEvent sce)
      Specified by:
      contextInitialized in interface jakarta.servlet.ServletContextListener
    • contextDestroyed

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