优化代码

This commit is contained in:
everywhere.z
2024-10-12 11:47:48 +08:00
parent 294f761cb9
commit 8074c0e23b

View File

@@ -52,9 +52,7 @@ public class XPluginImpl implements Plugin {
context.beanMake(LiteflowMainAutoConfiguration.class);
// 订阅生命周期实现类
context.subBeansOfType(LifeCycle.class, bean -> {
LifeCycleHolder.addLifeCycle(bean);
});
context.subBeansOfType(LifeCycle.class, LifeCycleHolder::addLifeCycle);
// 订阅 @Component 或别的方式产生的 NodeComponent
context.subWrapsOfType(NodeComponent.class, bw->{