Class ServletContextListener

java.lang.Object
ServletContextListener
All Implemented Interfaces:
jakarta.servlet.ServletContextListener, EventListener

public class ServletContextListener extends Object implements jakarta.servlet.ServletContextListener
Listens to the initialisation and destruction of servlet contexts. Used for initialising configuration parameters.
Author:
Afonso Caniço, Afonso Sampaio, Gustavo Ferreira, Samuel Correia
  • Constructor Details

    • ServletContextListener

      public ServletContextListener()
  • Method Details

    • contextInitialized

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

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