public class ContextCleanupListener extends Object implements ServletContextListener
DisposableBean
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.ServletContextScope,
ContextLoaderListener| Constructor and Description |
|---|
ContextCleanupListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
contextDestroyed(ServletContextEvent event)
Receives notification that the ServletContext is about to be
shut down.
|
void |
contextInitialized(ServletContextEvent event)
Receives notification that the web application initialization
process is starting.
|
public void contextInitialized(ServletContextEvent event)
javax.servlet.ServletContextListenerAll ServletContextListeners are notified of context initialization before any filters or servlets in the web application are initialized.
contextInitialized in interface ServletContextListenerevent - the ServletContextEvent containing the ServletContext
that is being initializedpublic void contextDestroyed(ServletContextEvent event)
javax.servlet.ServletContextListenerAll servlets and filters will have been destroyed before any ServletContextListeners are notified of context destruction.
contextDestroyed in interface ServletContextListenerevent - the ServletContextEvent containing the ServletContext
that is being destroyed