Class WMAppLastListener
java.lang.Object
com.wavemaker.runtime.web.listener.WMAppLastListener
- All Implemented Interfaces:
jakarta.servlet.ServletContextListener,EventListener
This is the last listener declared in the web.xml.
It removes the mdc value set by
WMAppFirstListener in its contextInitialized method as it will be the last method to be called.
This works in conjunction with WMAppFirstListener class which is the first listener defined in the web application.
Its contextDestroyed method is the first to be called during un deployment, and it sets the mdc value which is removed in contextDestroyed method of
WMAppFirstListener class-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcontextDestroyed(jakarta.servlet.ServletContextEvent sce) voidcontextInitialized(jakarta.servlet.ServletContextEvent sce)
-
Constructor Details
-
WMAppLastListener
public WMAppLastListener()
-
-
Method Details
-
contextInitialized
public void contextInitialized(jakarta.servlet.ServletContextEvent sce) - Specified by:
contextInitializedin interfacejakarta.servlet.ServletContextListener
-
contextDestroyed
public void contextDestroyed(jakarta.servlet.ServletContextEvent sce) - Specified by:
contextDestroyedin interfacejakarta.servlet.ServletContextListener
-