FlowExecutor增加LiteflowConfig的构造方法

This commit is contained in:
bryan31
2022-02-22 18:21:28 +08:00
parent 92f7994756
commit b9198df609
2 changed files with 8 additions and 3 deletions

View File

@@ -60,6 +60,13 @@ public class FlowExecutor {
private LiteflowConfig liteflowConfig;
public FlowExecutor() {
}
public FlowExecutor(LiteflowConfig liteflowConfig){
this.liteflowConfig = liteflowConfig;
}
/**
* FlowExecutor的初始化化方式主要用于parse规则文件
*/

View File

@@ -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