mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-05-14 20:22:07 +08:00
FlowExecutor增加LiteflowConfig的构造方法
This commit is contained in:
@@ -60,6 +60,13 @@ public class FlowExecutor {
|
||||
|
||||
private LiteflowConfig liteflowConfig;
|
||||
|
||||
public FlowExecutor() {
|
||||
}
|
||||
|
||||
public FlowExecutor(LiteflowConfig liteflowConfig){
|
||||
this.liteflowConfig = liteflowConfig;
|
||||
}
|
||||
|
||||
/**
|
||||
* FlowExecutor的初始化化方式,主要用于parse规则文件
|
||||
*/
|
||||
|
||||
@@ -34,9 +34,7 @@ public class LiteflowMainAutoConfiguration {
|
||||
|
||||
@Bean
|
||||
public FlowExecutor flowExecutor(LiteflowConfig liteflowConfig) {
|
||||
FlowExecutor flowExecutor = new FlowExecutor();
|
||||
flowExecutor.setLiteflowConfig(liteflowConfig);
|
||||
return flowExecutor;
|
||||
return new FlowExecutor(liteflowConfig);
|
||||
}
|
||||
|
||||
@Bean
|
||||
|
||||
Reference in New Issue
Block a user