mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-05-14 04:02:09 +08:00
enhancement #I7K3T1 自带AOP拦截需要增强获取tag等信息
This commit is contained in:
@@ -2,6 +2,7 @@ package com.yomahub.liteflow.spi.solon;
|
||||
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
import com.yomahub.liteflow.aop.ICmpAroundAspect;
|
||||
import com.yomahub.liteflow.core.NodeComponent;
|
||||
import com.yomahub.liteflow.slot.Slot;
|
||||
import com.yomahub.liteflow.spi.CmpAroundAspect;
|
||||
import org.noear.solon.Solon;
|
||||
@@ -23,16 +24,16 @@ public class SolonCmpAroundAspect implements CmpAroundAspect {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void beforeProcess(String nodeId, Slot slot) {
|
||||
public void beforeProcess(NodeComponent cmp) {
|
||||
if (ObjectUtil.isNotNull(cmpAroundAspect)) {
|
||||
cmpAroundAspect.beforeProcess(nodeId, slot);
|
||||
cmpAroundAspect.beforeProcess(cmp);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void afterProcess(String nodeId, Slot slot) {
|
||||
public void afterProcess(NodeComponent cmp) {
|
||||
if (ObjectUtil.isNotNull(cmpAroundAspect)) {
|
||||
cmpAroundAspect.afterProcess(nodeId, slot);
|
||||
cmpAroundAspect.afterProcess(cmp);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user