1 Star 0 Fork 156

whipper86 / Spring-Analysis

forked from huifer / Code-Analysis 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Spring-LifecycleProcessor.md 595 Bytes
一键复制 编辑 原始数据 按行查看 历史
huifer 提交于 2020-12-18 11:09 . feat: io 相关分析

Spring LifecycleProcessor

  • 类全路径: org.springframework.context.LifecycleProcessor

  • LifecycleProcessor: 生命周期处理接口, 即在生命周期的某些部分进行一些处理, 某些部分是指 刷新和关闭.

public interface LifecycleProcessor extends Lifecycle {

	/**
	 * Notification of context refresh, e.g. for auto-starting components.
	 */
	void onRefresh();

	/**
	 * Notification of context close phase, e.g. for auto-stopping components.
	 */
	void onClose();

}
  • 在 Spring 中 LifecycleProcessor 仅有 DefaultLifecycleProcessor 实现
Java
1
https://gitee.com/huangxinwhipper/spring-analysis.git
git@gitee.com:huangxinwhipper/spring-analysis.git
huangxinwhipper
spring-analysis
Spring-Analysis
master

搜索帮助