增加了自定义parser的扩展

This commit is contained in:
bryan.zhang
2018-02-27 15:18:59 +08:00
parent 76ae12dfe5
commit 6bf72e3655
4 changed files with 51 additions and 3 deletions

View File

@@ -0,0 +1,13 @@
package com.thebeastshop.liteflow.test;
import com.thebeastshop.liteflow.parser.ClassXmlFlowParser;
public class TestCustomParser extends ClassXmlFlowParser {
@Override
public String parseCustom() {
System.out.println("进入自定义parser,这里只做进入作用不返回具体xml");
return null;
}
}

View File

@@ -28,4 +28,13 @@
</property>
<property name="zkNode" value="/lite-flow/customFlow"/>这个不配置就用默认的/lite-flow/flow节点
</bean> -->
<!-- 这种是自定义Class方式配置 -->
<!-- <bean id="flowExecutor" class="com.thebeastshop.liteflow.core.FlowExecutor">
<property name="rulePath">
<list>
<value>com.thebeastshop.liteflow.test.TestCustomParser</value>
</list>
</property>
</bean> -->
</beans>