This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new f7214364976 CAMEL-17339 - Avoid List<String> as configuration
parameter types in Endpoint configurations - Camel Consul (#18651)
f7214364976 is described below
commit f72143649769facfbee19cef40952b508c0a1464
Author: Andrea Cosentino <[email protected]>
AuthorDate: Fri Jul 18 11:34:09 2025 +0200
CAMEL-17339 - Avoid List<String> as configuration parameter types in
Endpoint configurations - Camel Consul (#18651)
Signed-off-by: Andrea Cosentino <[email protected]>
---
.../apache/camel/catalog/components/consul.json | 4 +-
.../consul/ConsulComponentConfigurer.java | 13 +----
.../component/consul/ConsulEndpointConfigurer.java | 13 +----
.../org/apache/camel/component/consul/consul.json | 4 +-
.../consul/ConsulClientConfiguration.java | 21 +++++---
.../consul/endpoint/AbstractConsulProducer.java | 2 +-
.../dsl/ConsulComponentBuilderFactory.java | 9 ++--
.../endpoint/dsl/ConsulEndpointBuilderFactory.java | 60 +++-------------------
8 files changed, 32 insertions(+), 94 deletions(-)
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/consul.json
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/consul.json
index e1bc7171d99..42ce4d38b63 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/consul.json
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/consul.json
@@ -41,7 +41,7 @@
"consistencyMode": { "index": 14, "kind": "property", "displayName":
"Consistency Mode", "group": "advanced", "label": "advanced", "required":
false, "type": "object", "javaType":
"org.kiwiproject.consul.option.ConsistencyMode", "enum": [ "DEFAULT", "STALE",
"CONSISTENT" ], "deprecated": false, "autowired": false, "secret": false,
"defaultValue": "DEFAULT", "configurationClass":
"org.apache.camel.component.consul.ConsulConfiguration", "configurationField":
"configuration", "descripti [...]
"datacenter": { "index": 15, "kind": "property", "displayName":
"Datacenter", "group": "advanced", "label": "advanced", "required": false,
"type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.consul.ConsulConfiguration", "configurationField":
"configuration", "description": "The data center" },
"nearNode": { "index": 16, "kind": "property", "displayName": "Near Node",
"group": "advanced", "label": "advanced", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.consul.ConsulConfiguration", "configurationField":
"configuration", "description": "The near node to use for queries." },
- "nodeMeta": { "index": 17, "kind": "property", "displayName": "Node Meta",
"group": "advanced", "label": "advanced", "required": false, "type": "array",
"javaType": "java.util.List<java.lang.String>", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.consul.ConsulConfiguration", "configurationField":
"configuration", "description": "The note meta-data to use for queries." },
+ "nodeMeta": { "index": 17, "kind": "property", "displayName": "Node Meta",
"group": "advanced", "label": "advanced", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.consul.ConsulConfiguration", "configurationField":
"configuration", "description": "The comma separated node meta-data to use for
queries." },
"aclToken": { "index": 18, "kind": "property", "displayName": "Acl Token",
"group": "security", "label": "security", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "configurationClass":
"org.apache.camel.component.consul.ConsulConfiguration", "configurationField":
"configuration", "description": "Sets the ACL token to be used with Consul" },
"password": { "index": 19, "kind": "property", "displayName": "Password",
"group": "security", "label": "security", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "configurationClass":
"org.apache.camel.component.consul.ConsulConfiguration", "configurationField":
"configuration", "description": "Sets the password to be used for basic
authentication" },
"sslContextParameters": { "index": 20, "kind": "property", "displayName":
"Ssl Context Parameters", "group": "security", "label": "security", "required":
false, "type": "object", "javaType":
"org.apache.camel.support.jsse.SSLContextParameters", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.consul.ConsulConfiguration", "configurationField":
"configuration", "description": "SSL configuration using an
org.apache.camel.support [...]
@@ -103,7 +103,7 @@
"consistencyMode": { "index": 15, "kind": "parameter", "displayName":
"Consistency Mode", "group": "advanced", "label": "advanced", "required":
false, "type": "object", "javaType":
"org.kiwiproject.consul.option.ConsistencyMode", "enum": [ "DEFAULT", "STALE",
"CONSISTENT" ], "deprecated": false, "autowired": false, "secret": false,
"defaultValue": "DEFAULT", "configurationClass":
"org.apache.camel.component.consul.ConsulConfiguration", "configurationField":
"configuration", "descript [...]
"datacenter": { "index": 16, "kind": "parameter", "displayName":
"Datacenter", "group": "advanced", "label": "advanced", "required": false,
"type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.consul.ConsulConfiguration", "configurationField":
"configuration", "description": "The data center" },
"nearNode": { "index": 17, "kind": "parameter", "displayName": "Near
Node", "group": "advanced", "label": "advanced", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "configurationClass":
"org.apache.camel.component.consul.ConsulConfiguration", "configurationField":
"configuration", "description": "The near node to use for queries." },
- "nodeMeta": { "index": 18, "kind": "parameter", "displayName": "Node
Meta", "group": "advanced", "label": "advanced", "required": false, "type":
"array", "javaType": "java.util.List<java.lang.String>", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.consul.ConsulConfiguration", "configurationField":
"configuration", "description": "The note meta-data to use for queries." },
+ "nodeMeta": { "index": 18, "kind": "parameter", "displayName": "Node
Meta", "group": "advanced", "label": "advanced", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "configurationClass":
"org.apache.camel.component.consul.ConsulConfiguration", "configurationField":
"configuration", "description": "The comma separated node meta-data to use for
queries." },
"aclToken": { "index": 19, "kind": "parameter", "displayName": "Acl
Token", "group": "security", "label": "security", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": true, "configurationClass":
"org.apache.camel.component.consul.ConsulConfiguration", "configurationField":
"configuration", "description": "Sets the ACL token to be used with Consul" },
"password": { "index": 20, "kind": "parameter", "displayName": "Password",
"group": "security", "label": "security", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "configurationClass":
"org.apache.camel.component.consul.ConsulConfiguration", "configurationField":
"configuration", "description": "Sets the password to be used for basic
authentication" },
"sslContextParameters": { "index": 21, "kind": "parameter", "displayName":
"Ssl Context Parameters", "group": "security", "label": "security", "required":
false, "type": "object", "javaType":
"org.apache.camel.support.jsse.SSLContextParameters", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.consul.ConsulConfiguration", "configurationField":
"configuration", "description": "SSL configuration using an
org.apache.camel.suppor [...]
diff --git
a/components/camel-consul/src/generated/java/org/apache/camel/component/consul/ConsulComponentConfigurer.java
b/components/camel-consul/src/generated/java/org/apache/camel/component/consul/ConsulComponentConfigurer.java
index b79edac7867..29c8da76eb6 100644
---
a/components/camel-consul/src/generated/java/org/apache/camel/component/consul/ConsulComponentConfigurer.java
+++
b/components/camel-consul/src/generated/java/org/apache/camel/component/consul/ConsulComponentConfigurer.java
@@ -55,7 +55,7 @@ public class ConsulComponentConfigurer extends
PropertyConfigurerSupport impleme
case "nearnode":
case "nearNode":
getOrCreateConfiguration(target).setNearNode(property(camelContext,
java.lang.String.class, value)); return true;
case "nodemeta":
- case "nodeMeta":
getOrCreateConfiguration(target).setNodeMeta(property(camelContext,
java.util.List.class, value)); return true;
+ case "nodeMeta":
getOrCreateConfiguration(target).setNodeMeta(property(camelContext,
java.lang.String.class, value)); return true;
case "password":
getOrCreateConfiguration(target).setPassword(property(camelContext,
java.lang.String.class, value)); return true;
case "pinginstance":
case "pingInstance":
getOrCreateConfiguration(target).setPingInstance(property(camelContext,
boolean.class, value)); return true;
@@ -106,7 +106,7 @@ public class ConsulComponentConfigurer extends
PropertyConfigurerSupport impleme
case "nearnode":
case "nearNode": return java.lang.String.class;
case "nodemeta":
- case "nodeMeta": return java.util.List.class;
+ case "nodeMeta": return java.lang.String.class;
case "password": return java.lang.String.class;
case "pinginstance":
case "pingInstance": return boolean.class;
@@ -180,14 +180,5 @@ public class ConsulComponentConfigurer extends
PropertyConfigurerSupport impleme
default: return null;
}
}
-
- @Override
- public Object getCollectionValueType(Object target, String name, boolean
ignoreCase) {
- switch (ignoreCase ? name.toLowerCase() : name) {
- case "nodemeta":
- case "nodeMeta": return java.lang.String.class;
- default: return null;
- }
- }
}
diff --git
a/components/camel-consul/src/generated/java/org/apache/camel/component/consul/ConsulEndpointConfigurer.java
b/components/camel-consul/src/generated/java/org/apache/camel/component/consul/ConsulEndpointConfigurer.java
index 755642fe4eb..dcbeafa67a8 100644
---
a/components/camel-consul/src/generated/java/org/apache/camel/component/consul/ConsulEndpointConfigurer.java
+++
b/components/camel-consul/src/generated/java/org/apache/camel/component/consul/ConsulEndpointConfigurer.java
@@ -49,7 +49,7 @@ public class ConsulEndpointConfigurer extends
PropertyConfigurerSupport implemen
case "nearnode":
case "nearNode":
target.getConfiguration().setNearNode(property(camelContext,
java.lang.String.class, value)); return true;
case "nodemeta":
- case "nodeMeta":
target.getConfiguration().setNodeMeta(property(camelContext,
java.util.List.class, value)); return true;
+ case "nodeMeta":
target.getConfiguration().setNodeMeta(property(camelContext,
java.lang.String.class, value)); return true;
case "password":
target.getConfiguration().setPassword(property(camelContext,
java.lang.String.class, value)); return true;
case "pinginstance":
case "pingInstance":
target.getConfiguration().setPingInstance(property(camelContext, boolean.class,
value)); return true;
@@ -99,7 +99,7 @@ public class ConsulEndpointConfigurer extends
PropertyConfigurerSupport implemen
case "nearnode":
case "nearNode": return java.lang.String.class;
case "nodemeta":
- case "nodeMeta": return java.util.List.class;
+ case "nodeMeta": return java.lang.String.class;
case "password": return java.lang.String.class;
case "pinginstance":
case "pingInstance": return boolean.class;
@@ -170,14 +170,5 @@ public class ConsulEndpointConfigurer extends
PropertyConfigurerSupport implemen
default: return null;
}
}
-
- @Override
- public Object getCollectionValueType(Object target, String name, boolean
ignoreCase) {
- switch (ignoreCase ? name.toLowerCase() : name) {
- case "nodemeta":
- case "nodeMeta": return java.lang.String.class;
- default: return null;
- }
- }
}
diff --git
a/components/camel-consul/src/generated/resources/META-INF/org/apache/camel/component/consul/consul.json
b/components/camel-consul/src/generated/resources/META-INF/org/apache/camel/component/consul/consul.json
index e1bc7171d99..42ce4d38b63 100644
---
a/components/camel-consul/src/generated/resources/META-INF/org/apache/camel/component/consul/consul.json
+++
b/components/camel-consul/src/generated/resources/META-INF/org/apache/camel/component/consul/consul.json
@@ -41,7 +41,7 @@
"consistencyMode": { "index": 14, "kind": "property", "displayName":
"Consistency Mode", "group": "advanced", "label": "advanced", "required":
false, "type": "object", "javaType":
"org.kiwiproject.consul.option.ConsistencyMode", "enum": [ "DEFAULT", "STALE",
"CONSISTENT" ], "deprecated": false, "autowired": false, "secret": false,
"defaultValue": "DEFAULT", "configurationClass":
"org.apache.camel.component.consul.ConsulConfiguration", "configurationField":
"configuration", "descripti [...]
"datacenter": { "index": 15, "kind": "property", "displayName":
"Datacenter", "group": "advanced", "label": "advanced", "required": false,
"type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.consul.ConsulConfiguration", "configurationField":
"configuration", "description": "The data center" },
"nearNode": { "index": 16, "kind": "property", "displayName": "Near Node",
"group": "advanced", "label": "advanced", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.consul.ConsulConfiguration", "configurationField":
"configuration", "description": "The near node to use for queries." },
- "nodeMeta": { "index": 17, "kind": "property", "displayName": "Node Meta",
"group": "advanced", "label": "advanced", "required": false, "type": "array",
"javaType": "java.util.List<java.lang.String>", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.consul.ConsulConfiguration", "configurationField":
"configuration", "description": "The note meta-data to use for queries." },
+ "nodeMeta": { "index": 17, "kind": "property", "displayName": "Node Meta",
"group": "advanced", "label": "advanced", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.consul.ConsulConfiguration", "configurationField":
"configuration", "description": "The comma separated node meta-data to use for
queries." },
"aclToken": { "index": 18, "kind": "property", "displayName": "Acl Token",
"group": "security", "label": "security", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "configurationClass":
"org.apache.camel.component.consul.ConsulConfiguration", "configurationField":
"configuration", "description": "Sets the ACL token to be used with Consul" },
"password": { "index": 19, "kind": "property", "displayName": "Password",
"group": "security", "label": "security", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "configurationClass":
"org.apache.camel.component.consul.ConsulConfiguration", "configurationField":
"configuration", "description": "Sets the password to be used for basic
authentication" },
"sslContextParameters": { "index": 20, "kind": "property", "displayName":
"Ssl Context Parameters", "group": "security", "label": "security", "required":
false, "type": "object", "javaType":
"org.apache.camel.support.jsse.SSLContextParameters", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.consul.ConsulConfiguration", "configurationField":
"configuration", "description": "SSL configuration using an
org.apache.camel.support [...]
@@ -103,7 +103,7 @@
"consistencyMode": { "index": 15, "kind": "parameter", "displayName":
"Consistency Mode", "group": "advanced", "label": "advanced", "required":
false, "type": "object", "javaType":
"org.kiwiproject.consul.option.ConsistencyMode", "enum": [ "DEFAULT", "STALE",
"CONSISTENT" ], "deprecated": false, "autowired": false, "secret": false,
"defaultValue": "DEFAULT", "configurationClass":
"org.apache.camel.component.consul.ConsulConfiguration", "configurationField":
"configuration", "descript [...]
"datacenter": { "index": 16, "kind": "parameter", "displayName":
"Datacenter", "group": "advanced", "label": "advanced", "required": false,
"type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.consul.ConsulConfiguration", "configurationField":
"configuration", "description": "The data center" },
"nearNode": { "index": 17, "kind": "parameter", "displayName": "Near
Node", "group": "advanced", "label": "advanced", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "configurationClass":
"org.apache.camel.component.consul.ConsulConfiguration", "configurationField":
"configuration", "description": "The near node to use for queries." },
- "nodeMeta": { "index": 18, "kind": "parameter", "displayName": "Node
Meta", "group": "advanced", "label": "advanced", "required": false, "type":
"array", "javaType": "java.util.List<java.lang.String>", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.consul.ConsulConfiguration", "configurationField":
"configuration", "description": "The note meta-data to use for queries." },
+ "nodeMeta": { "index": 18, "kind": "parameter", "displayName": "Node
Meta", "group": "advanced", "label": "advanced", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "configurationClass":
"org.apache.camel.component.consul.ConsulConfiguration", "configurationField":
"configuration", "description": "The comma separated node meta-data to use for
queries." },
"aclToken": { "index": 19, "kind": "parameter", "displayName": "Acl
Token", "group": "security", "label": "security", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": true, "configurationClass":
"org.apache.camel.component.consul.ConsulConfiguration", "configurationField":
"configuration", "description": "Sets the ACL token to be used with Consul" },
"password": { "index": 20, "kind": "parameter", "displayName": "Password",
"group": "security", "label": "security", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "configurationClass":
"org.apache.camel.component.consul.ConsulConfiguration", "configurationField":
"configuration", "description": "Sets the password to be used for basic
authentication" },
"sslContextParameters": { "index": 21, "kind": "parameter", "displayName":
"Ssl Context Parameters", "group": "security", "label": "security", "required":
false, "type": "object", "javaType":
"org.apache.camel.support.jsse.SSLContextParameters", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.consul.ConsulConfiguration", "configurationField":
"configuration", "description": "SSL configuration using an
org.apache.camel.suppor [...]
diff --git
a/components/camel-consul/src/main/java/org/apache/camel/component/consul/ConsulClientConfiguration.java
b/components/camel-consul/src/main/java/org/apache/camel/component/consul/ConsulClientConfiguration.java
index ff917beafe8..eea53843f48 100644
---
a/components/camel-consul/src/main/java/org/apache/camel/component/consul/ConsulClientConfiguration.java
+++
b/components/camel-consul/src/main/java/org/apache/camel/component/consul/ConsulClientConfiguration.java
@@ -20,10 +20,7 @@ import java.io.IOException;
import java.math.BigInteger;
import java.security.GeneralSecurityException;
import java.time.Duration;
-import java.util.Collections;
-import java.util.HashSet;
-import java.util.List;
-import java.util.Set;
+import java.util.*;
import org.apache.camel.CamelContext;
import org.apache.camel.RuntimeCamelException;
@@ -43,7 +40,7 @@ public abstract class ConsulClientConfiguration implements
Cloneable {
@UriParam(label = "advanced")
private String nearNode;
@UriParam(label = "advanced")
- private List<String> nodeMeta;
+ private String nodeMeta;
@UriParam(label = "advanced", defaultValue = "DEFAULT", enums =
"DEFAULT,STALE,CONSISTENT")
private ConsistencyMode consistencyMode = ConsistencyMode.DEFAULT;
@UriParam(javaType = "java.lang.String")
@@ -128,14 +125,22 @@ public abstract class ConsulClientConfiguration
implements Cloneable {
this.nearNode = nearNode;
}
- public List<String> getNodeMeta() {
+ public String getNodeMeta() {
return nodeMeta;
}
+ public Collection<String> getNodeMetasAsList() {
+ if (nodeMeta != null) {
+ return List.of(nodeMeta.split(","));
+ } else {
+ return null;
+ }
+ }
+
/**
- * The note meta-data to use for queries.
+ * The comma separated node meta-data to use for queries.
*/
- public void setNodeMeta(List<String> nodeMeta) {
+ public void setNodeMeta(String nodeMeta) {
this.nodeMeta = nodeMeta;
}
diff --git
a/components/camel-consul/src/main/java/org/apache/camel/component/consul/endpoint/AbstractConsulProducer.java
b/components/camel-consul/src/main/java/org/apache/camel/component/consul/endpoint/AbstractConsulProducer.java
index 30c6b9cfb51..f33f632ebac 100644
---
a/components/camel-consul/src/main/java/org/apache/camel/component/consul/endpoint/AbstractConsulProducer.java
+++
b/components/camel-consul/src/main/java/org/apache/camel/component/consul/endpoint/AbstractConsulProducer.java
@@ -93,7 +93,7 @@ abstract class AbstractConsulProducer<C> extends
HeaderSelectorProducer {
ObjectHelper.ifNotEmpty(
message.getHeader(ConsulConstants.CONSUL_CONSISTENCY_MODE,
conf.getConsistencyMode(), ConsistencyMode.class),
builder::consistencyMode);
-
ObjectHelper.ifNotEmpty(message.getHeader(ConsulConstants.CONSUL_NODE_META,
conf.getNodeMeta(), List.class),
+
ObjectHelper.ifNotEmpty(message.getHeader(ConsulConstants.CONSUL_NODE_META,
conf.getNodeMetasAsList(), List.class),
builder::nodeMeta);
return builder.build();
diff --git
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/ConsulComponentBuilderFactory.java
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/ConsulComponentBuilderFactory.java
index 1e49e63c90d..d4bea00daf4 100644
---
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/ConsulComponentBuilderFactory.java
+++
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/ConsulComponentBuilderFactory.java
@@ -348,17 +348,16 @@ public interface ConsulComponentBuilderFactory {
}
/**
- * The note meta-data to use for queries.
+ * The comma separated node meta-data to use for queries.
*
- * The option is a:
- *
<code>java.util.List&lt;java.lang.String&gt;</code> type.
+ * The option is a: <code>java.lang.String</code> type.
*
* Group: advanced
*
* @param nodeMeta the value to set
* @return the dsl builder
*/
- default ConsulComponentBuilder
nodeMeta(java.util.List<java.lang.String> nodeMeta) {
+ default ConsulComponentBuilder nodeMeta(java.lang.String nodeMeta) {
doSetProperty("nodeMeta", nodeMeta);
return this;
}
@@ -530,7 +529,7 @@ public interface ConsulComponentBuilderFactory {
case "consistencyMode": getOrCreateConfiguration((ConsulComponent)
component).setConsistencyMode((org.kiwiproject.consul.option.ConsistencyMode)
value); return true;
case "datacenter": getOrCreateConfiguration((ConsulComponent)
component).setDatacenter((java.lang.String) value); return true;
case "nearNode": getOrCreateConfiguration((ConsulComponent)
component).setNearNode((java.lang.String) value); return true;
- case "nodeMeta": getOrCreateConfiguration((ConsulComponent)
component).setNodeMeta((java.util.List) value); return true;
+ case "nodeMeta": getOrCreateConfiguration((ConsulComponent)
component).setNodeMeta((java.lang.String) value); return true;
case "aclToken": getOrCreateConfiguration((ConsulComponent)
component).setAclToken((java.lang.String) value); return true;
case "password": getOrCreateConfiguration((ConsulComponent)
component).setPassword((java.lang.String) value); return true;
case "sslContextParameters":
getOrCreateConfiguration((ConsulComponent)
component).setSslContextParameters((org.apache.camel.support.jsse.SSLContextParameters)
value); return true;
diff --git
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/ConsulEndpointBuilderFactory.java
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/ConsulEndpointBuilderFactory.java
index a84e4eaeb23..584a4ff27c2 100644
---
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/ConsulEndpointBuilderFactory.java
+++
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/ConsulEndpointBuilderFactory.java
@@ -590,25 +590,9 @@ public interface ConsulEndpointBuilderFactory {
return this;
}
/**
- * The note meta-data to use for queries.
- *
- * The option is a: <code>java.util.List<java.lang.String></code>
- * type.
- *
- * Group: advanced
- *
- * @param nodeMeta the value to set
- * @return the dsl builder
- */
- default AdvancedConsulEndpointConsumerBuilder
nodeMeta(List<java.lang.String> nodeMeta) {
- doSetProperty("nodeMeta", nodeMeta);
- return this;
- }
- /**
- * The note meta-data to use for queries.
+ * The comma separated node meta-data to use for queries.
*
- * The option will be converted to a
- * <code>java.util.List<java.lang.String></code> type.
+ * The option is a: <code>java.lang.String</code> type.
*
* Group: advanced
*
@@ -1060,25 +1044,9 @@ public interface ConsulEndpointBuilderFactory {
return this;
}
/**
- * The note meta-data to use for queries.
- *
- * The option is a: <code>java.util.List<java.lang.String></code>
- * type.
- *
- * Group: advanced
- *
- * @param nodeMeta the value to set
- * @return the dsl builder
- */
- default AdvancedConsulEndpointProducerBuilder
nodeMeta(List<java.lang.String> nodeMeta) {
- doSetProperty("nodeMeta", nodeMeta);
- return this;
- }
- /**
- * The note meta-data to use for queries.
+ * The comma separated node meta-data to use for queries.
*
- * The option will be converted to a
- * <code>java.util.List<java.lang.String></code> type.
+ * The option is a: <code>java.lang.String</code> type.
*
* Group: advanced
*
@@ -1442,25 +1410,9 @@ public interface ConsulEndpointBuilderFactory {
return this;
}
/**
- * The note meta-data to use for queries.
- *
- * The option is a: <code>java.util.List<java.lang.String></code>
- * type.
- *
- * Group: advanced
- *
- * @param nodeMeta the value to set
- * @return the dsl builder
- */
- default AdvancedConsulEndpointBuilder nodeMeta(List<java.lang.String>
nodeMeta) {
- doSetProperty("nodeMeta", nodeMeta);
- return this;
- }
- /**
- * The note meta-data to use for queries.
+ * The comma separated node meta-data to use for queries.
*
- * The option will be converted to a
- * <code>java.util.List<java.lang.String></code> type.
+ * The option is a: <code>java.lang.String</code> type.
*
* Group: advanced
*