Class ShutdownServletContextListener

  • All Implemented Interfaces:
    jakarta.servlet.ServletContextListener, EventListener

    public class ShutdownServletContextListener
    extends Object
    implements jakarta.servlet.ServletContextListener
    The ShutdownServletContextListener class is used to trigger ShutdownManager to shutdown everything when it is undeployed, or the web container is terminated.
    • Constructor Detail

      • ShutdownServletContextListener

        public ShutdownServletContextListener()
    • Method Detail

      • 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