【代码评审】IoT:插件机制

This commit is contained in:
YunaiV
2025-01-08 22:36:38 +08:00
parent 0af6d5a758
commit aad0581777
7 changed files with 27 additions and 31 deletions

View File

@@ -13,8 +13,8 @@ import java.util.Arrays;
@Getter
public enum IotPluginDeployTypeEnum implements IntArrayValuable {
DEPLOY_VIA_JAR(0, "通过 jar 部署"), // TODO @haohaoUPLOAD 和 ALONE 感觉有点冲突,前者是部署方式,后者是运行方式。这个后续再讨论下哈
DEPLOY_STANDALONE(1, "独立部署");
JAR(0, "JAR 部署"),
STANDALONE(1, "独立部署");
public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(IotPluginDeployTypeEnum::getDeployType).toArray();
@@ -48,4 +48,5 @@ public enum IotPluginDeployTypeEnum implements IntArrayValuable {
public int[] array() {
return ARRAYS;
}
}