mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-05-15 12:32:09 +08:00
enhancement #I7KOPV 类级别声明组件优化建议
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user