bug #I7TYS3 当组件出现Exception的时候,afterProcess获取不到

This commit is contained in:
everywhere.z
2023-08-17 15:32:05 +08:00
parent 36c8974e04
commit f9c8d8d1c4
14 changed files with 102 additions and 17 deletions

View File

@@ -28,6 +28,20 @@ public class SpringCmpAroundAspect implements CmpAroundAspect {
}
}
@Override
public void onSuccess(NodeComponent cmp) {
if (ObjectUtil.isNotNull(ComponentScanner.cmpAroundAspect)) {
ComponentScanner.cmpAroundAspect.onSuccess(cmp);
}
}
@Override
public void onError(NodeComponent cmp, Exception e) {
if (ObjectUtil.isNotNull(ComponentScanner.cmpAroundAspect)) {
ComponentScanner.cmpAroundAspect.onError(cmp, e);
}
}
@Override
public int priority() {
return 1;