This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-spring-boot.git
The following commit(s) were added to refs/heads/main by this push:
new 1ee235b45fa Regen
1ee235b45fa is described below
commit 1ee235b45fa55eb4f5dd20be0486d77cc083fe05
Author: Claus Ibsen <[email protected]>
AuthorDate: Wed May 29 11:29:18 2024 +0200
Regen
---
.../org/apache/camel/springboot/catalog/components/etcd3.json | 4 ++--
components-starter/camel-etcd3-starter/src/main/docs/etcd3.json | 7 ++++---
.../component/etcd3/springboot/Etcd3ComponentConfiguration.java | 9 +++++----
3 files changed, 11 insertions(+), 9 deletions(-)
diff --git
a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/etcd3.json
b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/etcd3.json
index 550216d6aae..a856d1f3708 100644
---
a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/etcd3.json
+++
b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/etcd3.json
@@ -24,7 +24,7 @@
},
"componentProperties": {
"configuration": { "index": 0, "kind": "property", "displayName":
"Configuration", "group": "common", "label": "", "required": false, "type":
"object", "javaType": "org.apache.camel.component.etcd3.Etcd3Configuration",
"deprecated": false, "autowired": false, "secret": false, "description":
"Component configuration." },
- "endpoints": { "index": 1, "kind": "property", "displayName": "Endpoints",
"group": "common", "label": "common", "required": false, "type": "array",
"javaType": "java.lang.String[]", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": "http:\/\/localhost:2379",
"configurationClass": "org.apache.camel.component.etcd3.Etcd3Configuration",
"configurationField": "configuration", "description": "Configure etcd server
endpoints using the IPNameResolver." },
+ "endpoints": { "index": 1, "kind": "property", "displayName": "Endpoints",
"group": "common", "label": "common", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": "http:\/\/localhost:2379",
"configurationClass": "org.apache.camel.component.etcd3.Etcd3Configuration",
"configurationField": "configuration", "description": "Configure etcd server
endpoints using the IPNameResolver. Multiple endpoi [...]
"keyCharset": { "index": 2, "kind": "property", "displayName": "Key
Charset", "group": "common", "label": "common", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": "UTF-8", "configurationClass":
"org.apache.camel.component.etcd3.Etcd3Configuration", "configurationField":
"configuration", "description": "Configure the charset to use for the keys." },
"namespace": { "index": 3, "kind": "property", "displayName": "Namespace",
"group": "common", "label": "common", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.etcd3.Etcd3Configuration", "configurationField":
"configuration", "description": "Configure the namespace of keys used. \/ will
be treated as no namespace." },
"prefix": { "index": 4, "kind": "property", "displayName": "Prefix",
"group": "common", "label": "common", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "autowired": false, "secret":
false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.etcd3.Etcd3Configuration", "configurationField":
"configuration", "description": "To apply an action on all the key-value pairs
whose key that starts with the target path." },
@@ -58,7 +58,7 @@
},
"properties": {
"path": { "index": 0, "kind": "path", "displayName": "Path", "group":
"common", "label": "common", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"description": "The path the endpoint refers to" },
- "endpoints": { "index": 1, "kind": "parameter", "displayName":
"Endpoints", "group": "common", "label": "common", "required": false, "type":
"array", "javaType": "java.lang.String[]", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": "http:\/\/localhost:2379",
"configurationClass": "org.apache.camel.component.etcd3.Etcd3Configuration",
"configurationField": "configuration", "description": "Configure etcd server
endpoints using the IPNameResolver." },
+ "endpoints": { "index": 1, "kind": "parameter", "displayName":
"Endpoints", "group": "common", "label": "common", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": "http:\/\/localhost:2379",
"configurationClass": "org.apache.camel.component.etcd3.Etcd3Configuration",
"configurationField": "configuration", "description": "Configure etcd server
endpoints using the IPNameResolver. Multiple endpo [...]
"keyCharset": { "index": 2, "kind": "parameter", "displayName": "Key
Charset", "group": "common", "label": "common", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": "UTF-8", "configurationClass":
"org.apache.camel.component.etcd3.Etcd3Configuration", "configurationField":
"configuration", "description": "Configure the charset to use for the keys." },
"namespace": { "index": 3, "kind": "parameter", "displayName":
"Namespace", "group": "common", "label": "common", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "configurationClass":
"org.apache.camel.component.etcd3.Etcd3Configuration", "configurationField":
"configuration", "description": "Configure the namespace of keys used. \/ will
be treated as no namespace." },
"prefix": { "index": 4, "kind": "parameter", "displayName": "Prefix",
"group": "common", "label": "common", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "autowired": false, "secret":
false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.etcd3.Etcd3Configuration", "configurationField":
"configuration", "description": "To apply an action on all the key-value pairs
whose key that starts with the target path." },
diff --git a/components-starter/camel-etcd3-starter/src/main/docs/etcd3.json
b/components-starter/camel-etcd3-starter/src/main/docs/etcd3.json
index ba9cd8dc4b2..5e098c325cf 100644
--- a/components-starter/camel-etcd3-starter/src/main/docs/etcd3.json
+++ b/components-starter/camel-etcd3-starter/src/main/docs/etcd3.json
@@ -64,9 +64,10 @@
},
{
"name": "camel.component.etcd3.endpoints",
- "type": "java.lang.String[]",
- "description": "Configure etcd server endpoints using the
IPNameResolver.",
- "sourceType":
"org.apache.camel.component.etcd3.springboot.Etcd3ComponentConfiguration"
+ "type": "java.lang.String",
+ "description": "Configure etcd server endpoints using the
IPNameResolver. Multiple endpoints can be separated by comma.",
+ "sourceType":
"org.apache.camel.component.etcd3.springboot.Etcd3ComponentConfiguration",
+ "defaultValue": "http:\/\/localhost:2379"
},
{
"name": "camel.component.etcd3.from-index",
diff --git
a/components-starter/camel-etcd3-starter/src/main/java/org/apache/camel/component/etcd3/springboot/Etcd3ComponentConfiguration.java
b/components-starter/camel-etcd3-starter/src/main/java/org/apache/camel/component/etcd3/springboot/Etcd3ComponentConfiguration.java
index cbc75d2f2ff..e2f2460a7ce 100644
---
a/components-starter/camel-etcd3-starter/src/main/java/org/apache/camel/component/etcd3/springboot/Etcd3ComponentConfiguration.java
+++
b/components-starter/camel-etcd3-starter/src/main/java/org/apache/camel/component/etcd3/springboot/Etcd3ComponentConfiguration.java
@@ -44,9 +44,10 @@ public class Etcd3ComponentConfiguration
*/
private Etcd3Configuration configuration;
/**
- * Configure etcd server endpoints using the IPNameResolver.
+ * Configure etcd server endpoints using the IPNameResolver. Multiple
+ * endpoints can be separated by comma.
*/
- private String[] endpoints;
+ private String endpoints = "http://localhost:2379";
/**
* Configure the charset to use for the keys.
*/
@@ -173,11 +174,11 @@ public class Etcd3ComponentConfiguration
this.configuration = configuration;
}
- public String[] getEndpoints() {
+ public String getEndpoints() {
return endpoints;
}
- public void setEndpoints(String[] endpoints) {
+ public void setEndpoints(String endpoints) {
this.endpoints = endpoints;
}