类 ContextCleanupListener
java.lang.Object
cn.taketoday.web.servlet.ContextCleanupListener
- 所有已实现的接口:
ServletContextListener,EventListener
Web application listener that cleans up remaining disposable attributes
in the ServletContext, i.e. attributes which implement
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.- 从以下版本开始:
- 4.0 2022/2/20 17:20
- 作者:
- Juergen Hoeller, Harry Yang
- 另请参阅:
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明(专用程序包) static voidcleanupAttributes(ServletContext servletContext) Find all Frameworkinternal ServletContext attributes which implementDisposableBeanand invoke the destroy method on them.voidvoid
-
字段详细资料
-
logger
private static final cn.taketoday.logging.Logger logger
-
-
构造器详细资料
-
ContextCleanupListener
public ContextCleanupListener()
-
-
方法详细资料
-
contextInitialized
- 指定者:
contextInitialized在接口中ServletContextListener
-
contextDestroyed
- 指定者:
contextDestroyed在接口中ServletContextListener
-
cleanupAttributes
Find all Frameworkinternal ServletContext attributes which implementDisposableBeanand invoke the destroy method on them.- 参数:
servletContext- the ServletContext to check- 另请参阅:
-
DisposableBean.destroy()
-