enhancement #I7KOPV 类级别声明组件优化建议

This commit is contained in:
everywhere.z
2023-07-21 00:29:12 +08:00
parent c18f46ac48
commit 288899d3ad
8 changed files with 33 additions and 8 deletions

View File

@@ -15,7 +15,7 @@ import com.yomahub.liteflow.spi.LiteflowComponentSupport;
public class SpringLiteflowComponentSupport implements LiteflowComponentSupport {
@Override
public String getCmpName(NodeComponent nodeComponent) {
public String getCmpName(Object nodeComponent) {
// 判断NodeComponent是否是标识了@LiteflowComponent的标注
// 如果标注了那么要从中取到name字段
LiteflowComponent liteflowComponent = nodeComponent.getClass().getAnnotation(LiteflowComponent.class);