Class ServletListener

java.lang.Object
org.apache.sis.internal.system.ServletListener
All Implemented Interfaces:
jakarta.servlet.ServletContextListener, EventListener

@WebListener("Apache SIS shutdown hook") public final class ServletListener extends Object implements jakarta.servlet.ServletContextListener
Listener for servlet context, used as a shutdown hook when the application is undeployed. This class should not be used directly.
Since:
0.3
Version:
0.7
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    Invoked by reflection by the container.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    contextDestroyed(jakarta.servlet.ServletContextEvent event)
    Receives notification that the application is about to be shutdown.
    void
    contextInitialized(jakarta.servlet.ServletContextEvent event)
    Receives notification that the web application initialization process is starting.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ServletListener

      public ServletListener()
      Invoked by reflection by the container.
  • Method Details

    • contextInitialized

      public void contextInitialized(jakarta.servlet.ServletContextEvent event)
      Receives notification that the web application initialization process is starting.
      Specified by:
      contextInitialized in interface jakarta.servlet.ServletContextListener
      Parameters:
      event - the context of the servlet being initialized.
    • contextDestroyed

      public void contextDestroyed(jakarta.servlet.ServletContextEvent event)
      Receives notification that the application is about to be shutdown.
      Specified by:
      contextDestroyed in interface jakarta.servlet.ServletContextListener
      Parameters:
      event - the context of the servlet being shutdown.