javax.servlet
Interface ServletContextListener

All Superinterfaces:
java.util.EventListener

public interface ServletContextListener
extends java.util.EventListener

Interface for a listener receiving events when the ServletContext changes.

Since:
Servlet 2.3

Method Summary
 void contextDestroyed(ServletContextEvent event)
          Callback when a ServletContext is destroyed
 void contextInitialized(ServletContextEvent event)
          Callback when a ServletContext is initialized
 

Method Detail

contextInitialized

public void contextInitialized(ServletContextEvent event)
Callback when a ServletContext is initialized
Parameters:
event - the event for the context initialization

contextDestroyed

public void contextDestroyed(ServletContextEvent event)
Callback when a ServletContext is destroyed
Parameters:
event - the event for the context destruction