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