You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2020/04/08 09:41:42 UTC
[camel] 03/05: CAMEL-14816: fault-tolerance is preview support
level.
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
commit e61008867849cb1711e85ef154854e92f6088144
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Wed Apr 8 10:27:29 2020 +0200
CAMEL-14816: fault-tolerance is preview support level.
---
components/camel-microprofile-fault-tolerance/pom.xml | 1 +
.../generated/resources/microprofile-fault-tolerance.json | 1 +
.../java/org/apache/camel/tooling/model/SupportLevel.java | 14 ++++++++++++--
3 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/components/camel-microprofile-fault-tolerance/pom.xml b/components/camel-microprofile-fault-tolerance/pom.xml
index 1ebc06f..b5cce3b 100644
--- a/components/camel-microprofile-fault-tolerance/pom.xml
+++ b/components/camel-microprofile-fault-tolerance/pom.xml
@@ -35,6 +35,7 @@
<properties>
<firstVersion>3.3.0</firstVersion>
<label>eip,microservice</label>
+ <supportLevel>preview</supportLevel>
</properties>
<dependencies>
diff --git a/components/camel-microprofile-fault-tolerance/src/generated/resources/microprofile-fault-tolerance.json b/components/camel-microprofile-fault-tolerance/src/generated/resources/microprofile-fault-tolerance.json
index 7ece2a0..8a0b769 100644
--- a/components/camel-microprofile-fault-tolerance/src/generated/resources/microprofile-fault-tolerance.json
+++ b/components/camel-microprofile-fault-tolerance/src/generated/resources/microprofile-fault-tolerance.json
@@ -7,6 +7,7 @@
"deprecated": false,
"firstVersion": "3.3.0",
"label": "eip,microservice",
+ "supportLevel": "Preview",
"groupId": "org.apache.camel",
"artifactId": "camel-microprofile-fault-tolerance",
"version": "3.3.0-SNAPSHOT"
diff --git a/tooling/camel-tooling-model/src/main/java/org/apache/camel/tooling/model/SupportLevel.java b/tooling/camel-tooling-model/src/main/java/org/apache/camel/tooling/model/SupportLevel.java
index df579c9..47c311d 100644
--- a/tooling/camel-tooling-model/src/main/java/org/apache/camel/tooling/model/SupportLevel.java
+++ b/tooling/camel-tooling-model/src/main/java/org/apache/camel/tooling/model/SupportLevel.java
@@ -47,8 +47,18 @@ public enum SupportLevel {
public static SupportLevel DEFAULT = Stable;
- public static SupportLevel safeValueOf(String string) {
- return string == null ? DEFAULT : valueOf(string);
+ public static SupportLevel safeValueOf(String level) {
+ if (level == null) {
+ return DEFAULT;
+ }
+ if (level.compareToIgnoreCase(Experimental.name()) == 0) {
+ return Experimental;
+ } else if (level.compareToIgnoreCase(Preview.name()) == 0) {
+ return Preview;
+ } else if (level.compareToIgnoreCase(Stable.name()) == 0) {
+ return Stable;
+ }
+ throw new IllegalArgumentException("Unknown supportLevel: " + level);
}
}