Top Description Methods
javax.servlet

public Interface ServletContextListener

extends EventListener
Imports
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.
Since
Servlet 2.3
Version
$Rev: 46019 $ $Date: 2004-09-14 04:56:06 -0500 (Tue, 14 Sep 2004) $
See Also
ServletContextEvent

Method Summary

Modifier and TypeMethod and Description
public void
contextDestroyed(ServletContextEvent sce)

Notification that the servlet context is about to be shut down.

public void
contextInitialized(ServletContextEvent sce)

Notification that the web application initialization process is starting.

Method Detail

contextDestroyedback to summary
public void contextDestroyed(ServletContextEvent sce)

Notification that the servlet context is about to be shut down. All servlets have been destroy()ed before any ServletContextListeners are notified of context destruction.

contextInitializedback to summary
public void contextInitialized(ServletContextEvent sce)

Notification that the web application initialization process is starting. All ServletContextListeners are notified of context initialisation before any filter or servlet in the web application is initialized.