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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcontextDestroyed(jakarta.servlet.ServletContextEvent e) voidcontextInitialized(jakarta.servlet.ServletContextEvent e)
-
Constructor Details
-
ServletContextListener
public ServletContextListener()
-
-
Method Details
-
contextInitialized
public void contextInitialized(jakarta.servlet.ServletContextEvent e) - Specified by:
contextInitializedin interfacejakarta.servlet.ServletContextListener
-
contextDestroyed
public void contextDestroyed(jakarta.servlet.ServletContextEvent e) - Specified by:
contextDestroyedin interfacejakarta.servlet.ServletContextListener
-