Package org.apache.sis.internal.system
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 -
Method Summary
Modifier and TypeMethodDescriptionvoidcontextDestroyed(jakarta.servlet.ServletContextEvent event) Receives notification that the application is about to be shutdown.voidcontextInitialized(jakarta.servlet.ServletContextEvent event) Receives notification that the web application initialization process is starting.
-
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:
contextInitializedin interfacejakarta.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:
contextDestroyedin interfacejakarta.servlet.ServletContextListener- Parameters:
event- the context of the servlet being shutdown.
-