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 cdc539438e9 Regen
cdc539438e9 is described below

commit cdc539438e944266ebf125861e55ca4ca4a6d305
Author: Claus Ibsen <[email protected]>
AuthorDate: Mon Jun 24 14:00:10 2024 +0200

    Regen
---
 .../camel/springboot/catalog/components/arangodb.json      | 10 ++++++----
 .../camel-arangodb-starter/src/main/docs/arangodb.json     |  6 ++++++
 .../springboot/ArangoDbComponentConfiguration.java         | 14 ++++++++++++++
 .../arangodb/springboot/ArangoDbComponentConverter.java    |  2 ++
 4 files changed, 28 insertions(+), 4 deletions(-)

diff --git 
a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/arangodb.json
 
b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/arangodb.json
index 823cb3f8466..1a12745001a 100644
--- 
a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/arangodb.json
+++ 
b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/arangodb.json
@@ -34,8 +34,9 @@
     "vertexCollection": { "index": 8, "kind": "property", "displayName": 
"Vertex Collection", "group": "producer", "label": "producer", "required": 
false, "type": "string", "javaType": "java.lang.String", "deprecated": false, 
"autowired": false, "secret": false, "configurationClass": 
"org.apache.camel.component.arangodb.ArangoDbConfiguration", 
"configurationField": "configuration", "description": "Collection name of 
vertices, when using ArangoDb as a Graph Database. Set the vertexCollect [...]
     "arangoDB": { "index": 9, "kind": "property", "displayName": "Arango DB", 
"group": "advanced", "label": "advanced", "required": false, "type": "object", 
"javaType": "com.arangodb.ArangoDB", "deprecated": false, "autowired": true, 
"secret": false, "description": "To use an existing ArangDB client." },
     "autowiredEnabled": { "index": 10, "kind": "property", "displayName": 
"Autowired Enabled", "group": "advanced", "label": "advanced", "required": 
false, "type": "boolean", "javaType": "boolean", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": true, "description": 
"Whether autowiring is enabled. This is used for automatic autowiring options 
(the option must be marked as autowired) by looking up in the registry to find 
if there is a single instance of matching  [...]
-    "password": { "index": 11, "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.arangodb.ArangoDbConfiguration", 
"configurationField": "configuration", "description": "ArangoDB password. If 
user and password are default, this field is Optional." },
-    "user": { "index": 12, "kind": "property", "displayName": "User", "group": 
"security", "label": "security", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": true, "configurationClass": 
"org.apache.camel.component.arangodb.ArangoDbConfiguration", 
"configurationField": "configuration", "description": "ArangoDB user. If user 
and password are default, this field is Optional." }
+    "vertx": { "index": 11, "kind": "property", "displayName": "Vertx", 
"group": "advanced", "label": "advanced", "required": false, "type": "object", 
"javaType": "io.vertx.core.Vertx", "deprecated": false, "autowired": true, 
"secret": false, "description": "To use an existing Vertx in the ArangoDB 
client." },
+    "password": { "index": 12, "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.arangodb.ArangoDbConfiguration", 
"configurationField": "configuration", "description": "ArangoDB password. If 
user and password are default, this field is Optional." },
+    "user": { "index": 13, "kind": "property", "displayName": "User", "group": 
"security", "label": "security", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": true, "configurationClass": 
"org.apache.camel.component.arangodb.ArangoDbConfiguration", 
"configurationField": "configuration", "description": "ArangoDB user. If user 
and password are default, this field is Optional." }
   },
   "headers": {
     "CamelArangoDbMultiUpdate": { "index": 0, "kind": "header", "displayName": 
"", "group": "producer", "label": "", "required": false, "javaType": 
"java.lang.Boolean", "deprecated": false, "deprecationNote": "", "autowired": 
false, "secret": false, "defaultValue": "false", "description": "Indicates if 
there are multiple documents to update. If set to true, the body of the message 
must be a Collection of documents to update.", "constantName": 
"org.apache.camel.component.arangodb.ArangoDb [...]
@@ -58,7 +59,8 @@
     "vertexCollection": { "index": 7, "kind": "parameter", "displayName": 
"Vertex Collection", "group": "producer", "label": "producer", "required": 
false, "type": "string", "javaType": "java.lang.String", "deprecated": false, 
"autowired": false, "secret": false, "configurationClass": 
"org.apache.camel.component.arangodb.ArangoDbConfiguration", 
"configurationField": "configuration", "description": "Collection name of 
vertices, when using ArangoDb as a Graph Database. Set the vertexCollec [...]
     "lazyStartProducer": { "index": 8, "kind": "parameter", "displayName": 
"Lazy Start Producer", "group": "producer (advanced)", "label": 
"producer,advanced", "required": false, "type": "boolean", "javaType": 
"boolean", "deprecated": false, "autowired": false, "secret": false, 
"defaultValue": false, "description": "Whether the producer should be started 
lazy (on the first message). By starting lazy you can use this to allow 
CamelContext and routes to startup in situations where a produc [...]
     "arangoDB": { "index": 9, "kind": "parameter", "displayName": "Arango DB", 
"group": "advanced", "label": "advanced", "required": false, "type": "object", 
"javaType": "com.arangodb.ArangoDB", "deprecated": false, "autowired": false, 
"secret": false, "description": "To use an existing ArangDB client." },
-    "password": { "index": 10, "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.arangodb.ArangoDbConfiguration", 
"configurationField": "configuration", "description": "ArangoDB password. If 
user and password are default, this field is Optional." },
-    "user": { "index": 11, "kind": "parameter", "displayName": "User", 
"group": "security", "label": "security", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": true, "configurationClass": 
"org.apache.camel.component.arangodb.ArangoDbConfiguration", 
"configurationField": "configuration", "description": "ArangoDB user. If user 
and password are default, this field is Optional." }
+    "vertx": { "index": 10, "kind": "parameter", "displayName": "Vertx", 
"group": "advanced", "label": "advanced", "required": false, "type": "object", 
"javaType": "io.vertx.core.Vertx", "deprecated": false, "autowired": false, 
"secret": false, "description": "To use an existing Vertx instance in the 
ArangoDB client." },
+    "password": { "index": 11, "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.arangodb.ArangoDbConfiguration", 
"configurationField": "configuration", "description": "ArangoDB password. If 
user and password are default, this field is Optional." },
+    "user": { "index": 12, "kind": "parameter", "displayName": "User", 
"group": "security", "label": "security", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": true, "configurationClass": 
"org.apache.camel.component.arangodb.ArangoDbConfiguration", 
"configurationField": "configuration", "description": "ArangoDB user. If user 
and password are default, this field is Optional." }
   }
 }
diff --git 
a/components-starter/camel-arangodb-starter/src/main/docs/arangodb.json 
b/components-starter/camel-arangodb-starter/src/main/docs/arangodb.json
index 906f470af8f..979ab5fe477 100644
--- a/components-starter/camel-arangodb-starter/src/main/docs/arangodb.json
+++ b/components-starter/camel-arangodb-starter/src/main/docs/arangodb.json
@@ -103,6 +103,12 @@
       "type": "java.lang.String",
       "description": "Collection name of vertices, when using ArangoDb as a 
Graph Database. Set the vertexCollection name to perform CRUD operation on 
vertices using these operations : SAVE_EDGE, FIND_EDGE_BY_KEY, UPDATE_EDGE, 
DELETE_EDGE. The graph attribute is mandatory.",
       "sourceType": 
"org.apache.camel.component.arangodb.springboot.ArangoDbComponentConfiguration"
+    },
+    {
+      "name": "camel.component.arangodb.vertx",
+      "type": "io.vertx.core.Vertx",
+      "description": "To use an existing Vertx in the ArangoDB client. The 
option is a io.vertx.core.Vertx type.",
+      "sourceType": 
"org.apache.camel.component.arangodb.springboot.ArangoDbComponentConfiguration"
     }
   ],
   "hints": []
diff --git 
a/components-starter/camel-arangodb-starter/src/main/java/org/apache/camel/component/arangodb/springboot/ArangoDbComponentConfiguration.java
 
b/components-starter/camel-arangodb-starter/src/main/java/org/apache/camel/component/arangodb/springboot/ArangoDbComponentConfiguration.java
index 8ff0704c58d..1aee800d169 100644
--- 
a/components-starter/camel-arangodb-starter/src/main/java/org/apache/camel/component/arangodb/springboot/ArangoDbComponentConfiguration.java
+++ 
b/components-starter/camel-arangodb-starter/src/main/java/org/apache/camel/component/arangodb/springboot/ArangoDbComponentConfiguration.java
@@ -17,6 +17,7 @@
 package org.apache.camel.component.arangodb.springboot;
 
 import com.arangodb.ArangoDB;
+import io.vertx.core.Vertx;
 import org.apache.camel.component.arangodb.ArangoDbConfiguration;
 import org.apache.camel.component.arangodb.ArangoDbOperation;
 import org.apache.camel.spring.boot.ComponentConfigurationPropertiesCommon;
@@ -109,6 +110,11 @@ public class ArangoDbComponentConfiguration
      * etc.
      */
     private Boolean autowiredEnabled = true;
+    /**
+     * To use an existing Vertx in the ArangoDB client. The option is a
+     * io.vertx.core.Vertx type.
+     */
+    private Vertx vertx;
     /**
      * ArangoDB password. If user and password are default, this field is
      * Optional.
@@ -207,6 +213,14 @@ public class ArangoDbComponentConfiguration
         this.autowiredEnabled = autowiredEnabled;
     }
 
+    public Vertx getVertx() {
+        return vertx;
+    }
+
+    public void setVertx(Vertx vertx) {
+        this.vertx = vertx;
+    }
+
     public String getPassword() {
         return password;
     }
diff --git 
a/components-starter/camel-arangodb-starter/src/main/java/org/apache/camel/component/arangodb/springboot/ArangoDbComponentConverter.java
 
b/components-starter/camel-arangodb-starter/src/main/java/org/apache/camel/component/arangodb/springboot/ArangoDbComponentConverter.java
index fe31cded35c..c46860d4380 100644
--- 
a/components-starter/camel-arangodb-starter/src/main/java/org/apache/camel/component/arangodb/springboot/ArangoDbComponentConverter.java
+++ 
b/components-starter/camel-arangodb-starter/src/main/java/org/apache/camel/component/arangodb/springboot/ArangoDbComponentConverter.java
@@ -41,6 +41,7 @@ public class ArangoDbComponentConverter implements 
GenericConverter {
         Set<ConvertiblePair> answer = new LinkedHashSet<>();
         answer.add(new ConvertiblePair(String.class, 
org.apache.camel.component.arangodb.ArangoDbConfiguration.class));
         answer.add(new ConvertiblePair(String.class, 
com.arangodb.ArangoDB.class));
+        answer.add(new ConvertiblePair(String.class, 
io.vertx.core.Vertx.class));
         return answer;
     }
 
@@ -59,6 +60,7 @@ public class ArangoDbComponentConverter implements 
GenericConverter {
         switch (targetType.getName()) {
             case "org.apache.camel.component.arangodb.ArangoDbConfiguration": 
return applicationContext.getBean(ref, 
org.apache.camel.component.arangodb.ArangoDbConfiguration.class);
             case "com.arangodb.ArangoDB": return 
applicationContext.getBean(ref, com.arangodb.ArangoDB.class);
+            case "io.vertx.core.Vertx": return applicationContext.getBean(ref, 
io.vertx.core.Vertx.class);
         }
         return null;
     }

Reply via email to