mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-05-14 20:22:07 +08:00
优化代码
This commit is contained in:
@@ -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->{
|
||||
|
||||
Reference in New Issue
Block a user