public class ContextCleanupListener extends Object implements ServletContextListener
and haven't been removed before. This is typically used for destroying objects
in "application" scope, for which the lifecycle implies destruction at the
very end of the web application's shutdown phase.
|Constructor and Description
|Modifier and Type
|Method and Description
Receives notification that the ServletContext is about to be shut down.
Receives notification that the web application initialization process is starting.
public void contextInitialized(ServletContextEvent event)
All ServletContextListeners are notified of context initialization before any filters or servlets in the web application are initialized.
public void contextDestroyed(ServletContextEvent event)
All servlets and filters will have been destroyed before any ServletContextListeners are notified of context destruction.