Package com.jk.web.servlets
Class LogbackServletContextListener
java.lang.Object
com.jk.web.servlets.LogbackServletContextListener
- All Implemented Interfaces:
jakarta.servlet.ServletContextListener
,EventListener
public class LogbackServletContextListener
extends Object
implements jakarta.servlet.ServletContextListener
This class is a ServletContextListener responsible for shutting down Log back
during the destruction of the web application context
- Version:
- 1.0
- Author:
- Dr. Jalal H. Kiswani
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
contextDestroyed
(jakarta.servlet.ServletContextEvent sce) This method is called when the web application context is destroyed.void
contextInitialized
(jakarta.servlet.ServletContextEvent sce) This method is called when the web application context is initialized.
-
Constructor Details
-
LogbackServletContextListener
public LogbackServletContextListener()
-
-
Method Details
-
contextInitialized
public void contextInitialized(jakarta.servlet.ServletContextEvent sce) This method is called when the web application context is initialized.- Specified by:
contextInitialized
in interfacejakarta.servlet.ServletContextListener
- Parameters:
sce
- Specifies the ServletContextEvent associated with context initialization.
-
contextDestroyed
public void contextDestroyed(jakarta.servlet.ServletContextEvent sce) This method is called when the web application context is destroyed.- Specified by:
contextDestroyed
in interfacejakarta.servlet.ServletContextListener
- Parameters:
sce
- Specifies the ServletContextEvent associated with context destruction.
-