feature #IAJD9H 期望liteflow 有自己的生命周期扩展

This commit is contained in:
everywhere.z
2024-10-12 22:53:39 +08:00
parent c7eba7d8db
commit 4181975c4f
3 changed files with 12 additions and 0 deletions

View File

@@ -56,4 +56,12 @@ public class LifeCycleHolder {
public static List<PostProcessChainExecuteLifeCycle> getPostProcessChainExecuteLifeCycleList() {
return POST_PROCESS_CHAIN_EXECUTE_LIFE_CYCLE_LIST;
}
public static void clean(){
POST_PROCESS_SCRIPT_ENGINE_INIT_LIFE_CYCLE_LIST.clear();
POST_PROCESS_CHAIN_BUILD_LIFE_CYCLE_LIST.clear();
POST_PROCESS_NODE_BUILD_LIFE_CYCLE_LIST.clear();
POST_PROCESS_FLOW_EXECUTE_LIFE_CYCLE_LIST.clear();
POST_PROCESS_CHAIN_EXECUTE_LIFE_CYCLE_LIST.clear();
}
}

View File

@@ -2,6 +2,7 @@ package com.yomahub.liteflow.test;
import com.yomahub.liteflow.core.FlowInitHook;
import com.yomahub.liteflow.flow.FlowBus;
import com.yomahub.liteflow.lifecycle.LifeCycleHolder;
import com.yomahub.liteflow.property.LiteflowConfigGetter;
import com.yomahub.liteflow.spi.holder.SpiFactoryInitializing;
import com.yomahub.liteflow.thread.ExecutorHelper;
@@ -17,6 +18,7 @@ public class BaseTest {
LiteflowConfigGetter.clean();
FlowInitHook.cleanHook();
FlowBus.clearStat();
LifeCycleHolder.clean();
}
}

View File

@@ -2,6 +2,7 @@ package com.yomahub.liteflow.test;
import com.yomahub.liteflow.core.FlowInitHook;
import com.yomahub.liteflow.flow.FlowBus;
import com.yomahub.liteflow.lifecycle.LifeCycleHolder;
import com.yomahub.liteflow.process.holder.SpringCmpAroundAspectHolder;
import com.yomahub.liteflow.property.LiteflowConfigGetter;
import com.yomahub.liteflow.spi.holder.SpiFactoryInitializing;
@@ -21,6 +22,7 @@ public class BaseTest {
FlowInitHook.cleanHook();
FlowBus.clearStat();
SpringCmpAroundAspectHolder.clean();
LifeCycleHolder.clean();
}
}