perf[module]: Scheduler启动注释

This commit is contained in:
jianan
2022-07-02 23:47:15 +08:00
parent b2c0bd3073
commit 2fd29b2a16
@@ -80,8 +80,7 @@ public class SchedulerContext implements ApplicationListener<ApplicationContextE
logger.info("Scheduler shutdown gracefully.");
}
@Override
public void onApplicationEvent(ApplicationContextEvent event) {
if (event instanceof ContextRefreshedEvent) {
@@ -89,7 +88,9 @@ public class SchedulerContext implements ApplicationListener<ApplicationContextE
SchedulerContext.instance = this;
instance.applicationContext = event.getApplicationContext();
inject();
// 启动位于SchedulerBus的static静态代码块中
} else if (event instanceof ContextClosedEvent) {
// 反射获取executor,关闭掉
shutdown();
}
}