javax.servlet
Interface ServletContextListener
- java.util.EventListener
public interface ServletContextListener
extends java.util.EventListener
Implementations of this interface recieve notifications about changes to the servlet context of the web application they are part of.
To recieve notification events, the implementation class
must be configured in the deployment descriptor for the web application.
- v 2.3
ServletContextEvent
contextDestroyed
public void contextDestroyed(ServletContextEvent sce)
Notification that the servlet context is about to be shut down.
contextInitialized
public void contextInitialized(ServletContextEvent sce)
Notification that the web application is ready to process requests.