Class WMAppLastListener

java.lang.Object
com.wavemaker.runtime.web.listener.WMAppLastListener
All Implemented Interfaces:
jakarta.servlet.ServletContextListener, EventListener

public class WMAppLastListener extends Object implements jakarta.servlet.ServletContextListener
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 Details

    • WMAppLastListener

      public WMAppLastListener()
  • Method Details

    • contextInitialized

      public void contextInitialized(jakarta.servlet.ServletContextEvent sce)
      Specified by:
      contextInitialized in interface jakarta.servlet.ServletContextListener
    • contextDestroyed

      public void contextDestroyed(jakarta.servlet.ServletContextEvent sce)
      Specified by:
      contextDestroyed in interface jakarta.servlet.ServletContextListener