javax.servlet
Interface ServletContextListener

All Superinterfaces:
java.util.EventListener
All Known Implementing Classes:
JspPrecompileListener, JspPrecompileListener

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

void contextInitialized(ServletContextEvent event)
Callback when a ServletContext is initialized

Parameters:
event - the event for the context initialization

contextDestroyed

void contextDestroyed(ServletContextEvent event)
Callback when a ServletContext is destroyed

Parameters:
event - the event for the context destruction