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) |
void |
contextInitialized(ServletContextEvent event) |
public void contextInitialized(ServletContextEvent event)
contextInitialized
in interface ServletContextListener
public void contextDestroyed(ServletContextEvent event)
contextDestroyed
in interface ServletContextListener