类 ContextCleanupListener
- java.lang.Object
- org.springframework.web.context.ContextCleanupListener
- 所有已实现的接口:
EventListener
,ServletContextListener
public class ContextCleanupListener extends Object implements ServletContextListener
Web application listener that cleans up remaining disposable attributes in the ServletContext, i.e. attributes which implementDisposableBean
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.- 从以下版本开始:
- 3.0
- 作者:
- Juergen Hoeller
- 另请参阅:
ServletContextScope
,ContextLoaderListener
构造器概要
构造器 构造器 说明 ContextCleanupListener()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 void
contextDestroyed(ServletContextEvent event)
void
contextInitialized(ServletContextEvent event)
构造器详细资料
ContextCleanupListener
public ContextCleanupListener()
方法详细资料
contextInitialized
public void contextInitialized(ServletContextEvent event)
- 指定者:
contextInitialized
在接口中ServletContextListener
contextDestroyed
public void contextDestroyed(ServletContextEvent event)
- 指定者:
contextDestroyed
在接口中ServletContextListener