You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by cd...@apache.org on 2026/10/08 20:14:47 UTC
(camel) 06/12: CAMEL-25333: Fix compilation and doc improvements on camel-openfeature
This is an automated email from the ASF dual-hosted git repository.
christophd pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
commit f8a64d4e04a06d7727b05cfb6e191e2fca3c7970
Author: Christoph Deppisch <ch...@web.de>
AuthorDate: Wed Oct 7 19:29:20 2026 +0200
CAMEL-25333: Fix compilation and doc improvements on camel-openfeature
Fix generated OpenFeatureEndpointUriFactory to use new HashMap<>(properties)
instead of non-existent copyParameters() method. Add missing evaluationType
getter/setter on OpenFeatureEndpoint. Update language doc to use fluent
setProperty DSL syntax.
Co-Authored-By: Claude Opus 4.6 <no...@anthropic.com>
---
.../org/apache/camel/catalog/docs/openfeature-language.adoc | 2 +-
.../camel-openfeature/src/main/docs/openfeature-language.adoc | 2 +-
.../apache/camel/component/openfeature/OpenFeatureEndpoint.java | 8 ++++++++
3 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/openfeature-language.adoc b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/openfeature-language.adoc
index 71a09874d522..07a08f3bf387 100644
--- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/openfeature-language.adoc
+++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/openfeature-language.adoc
@@ -72,7 +72,7 @@ keeps the message body untouched:
----
from("direct:start")
.setHeader("CamelOpenFeatureTargetingKey", simple("${body[order_id]}"))
- .setProperty("routingAlgorithm", language("openfeature", "new-routing-algorithm"))
+ .setProperty("routingAlgorithm").language("openfeature", "new-routing-algorithm")
.toD("direct:route-${exchangeProperty.routingAlgorithm}");
----
diff --git a/components/camel-openfeature/src/main/docs/openfeature-language.adoc b/components/camel-openfeature/src/main/docs/openfeature-language.adoc
index 71a09874d522..07a08f3bf387 100644
--- a/components/camel-openfeature/src/main/docs/openfeature-language.adoc
+++ b/components/camel-openfeature/src/main/docs/openfeature-language.adoc
@@ -72,7 +72,7 @@ keeps the message body untouched:
----
from("direct:start")
.setHeader("CamelOpenFeatureTargetingKey", simple("${body[order_id]}"))
- .setProperty("routingAlgorithm", language("openfeature", "new-routing-algorithm"))
+ .setProperty("routingAlgorithm").language("openfeature", "new-routing-algorithm")
.toD("direct:route-${exchangeProperty.routingAlgorithm}");
----
diff --git a/components/camel-openfeature/src/main/java/org/apache/camel/component/openfeature/OpenFeatureEndpoint.java b/components/camel-openfeature/src/main/java/org/apache/camel/component/openfeature/OpenFeatureEndpoint.java
index 6cd113c07c5b..574e12693e77 100644
--- a/components/camel-openfeature/src/main/java/org/apache/camel/component/openfeature/OpenFeatureEndpoint.java
+++ b/components/camel-openfeature/src/main/java/org/apache/camel/component/openfeature/OpenFeatureEndpoint.java
@@ -87,6 +87,14 @@ public class OpenFeatureEndpoint extends DefaultEndpoint {
return (OpenFeatureComponent) super.getComponent();
}
+ public String getEvaluationType() {
+ return evaluationType;
+ }
+
+ public void setEvaluationType(String evaluationType) {
+ this.evaluationType = evaluationType;
+ }
+
@Override
public Producer createProducer() {
return new OpenFeatureProducer(this);