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 TypeMethodDescriptionvoid
contextDestroyed
(jakarta.servlet.ServletContextEvent e) void
contextInitialized
(jakarta.servlet.ServletContextEvent e)
-
Constructor Details
-
ServletContextListener
public ServletContextListener()
-
-
Method Details
-
contextInitialized
public void contextInitialized(jakarta.servlet.ServletContextEvent e) - Specified by:
contextInitialized
in interfacejakarta.servlet.ServletContextListener
-
contextDestroyed
public void contextDestroyed(jakarta.servlet.ServletContextEvent e) - Specified by:
contextDestroyed
in interfacejakarta.servlet.ServletContextListener
-