FileDocCategorySizeDatePackage
ServletContextListener.javaAPI DocApache Tomcat 6.0.141893Fri Jul 20 04:20:30 BST 2007javax.servlet

ServletContextListener

public interface ServletContextListener implements EventListener
Implementations of this interface receive notifications about changes to the servlet context of the web application they are part of. To receive notification events, the implementation class must be configured in the deployment descriptor for the web application.
see
ServletContextEvent
since
v 2.3

Fields Summary
Constructors Summary
Methods Summary
public voidcontextDestroyed(javax.servlet.ServletContextEvent sce)
Notification that the servlet context is about to be shut down. All servlets and filters have been destroy()ed before any ServletContextListeners are notified of context destruction.

public voidcontextInitialized(javax.servlet.ServletContextEvent sce)
Notification that the web application initialization process is starting. All ServletContextListeners are notified of context initialization before any filter or servlet in the web application is initialized.