This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/master by this push:
     new c718950  CAMEL-13764 - Regen
c718950 is described below

commit c718950eb5316a4e839b8a0163cc0058aa74b082
Author: Andrea Cosentino <anco...@gmail.com>
AuthorDate: Thu Jul 18 17:36:00 2019 +0200

    CAMEL-13764 - Regen
---
 .../camel-mongodb3/src/main/docs/mongodb3-component.adoc   |  2 +-
 .../mongodb3/springboot/MongoDbComponentConfiguration.java | 14 ++++++++++++++
 2 files changed, 15 insertions(+), 1 deletion(-)

diff --git a/components/camel-mongodb3/src/main/docs/mongodb3-component.adoc 
b/components/camel-mongodb3/src/main/docs/mongodb3-component.adoc
index 74c061c..afe98e8 100644
--- a/components/camel-mongodb3/src/main/docs/mongodb3-component.adoc
+++ b/components/camel-mongodb3/src/main/docs/mongodb3-component.adoc
@@ -62,7 +62,7 @@ The MongoDB component supports 3 options, which are listed 
below.
 [width="100%",cols="2,5,^1,2",options="header"]
 |===
 | Name | Description | Default | Type
-| *mongoConnection* (common) | Set the client used for connection |  | 
MongoClient
+| *mongoConnection* (common) | Set a client used for connection: all endpoints 
generated from the component will share this connection bean. |  | MongoClient
 | *resolveProperty Placeholders* (advanced) | Whether the component should 
resolve property placeholders on itself when starting. Only properties which 
are of String type can use property placeholders. | true | boolean
 | *basicPropertyBinding* (advanced) | Whether the component should use basic 
property binding (Camel 2.x) or the newer property binding with additional 
capabilities | false | boolean
 |===
diff --git 
a/platforms/spring-boot/components-starter/camel-mongodb3-starter/src/main/java/org/apache/camel/component/mongodb3/springboot/MongoDbComponentConfiguration.java
 
b/platforms/spring-boot/components-starter/camel-mongodb3-starter/src/main/java/org/apache/camel/component/mongodb3/springboot/MongoDbComponentConfiguration.java
index 55e654e..a17b62a 100644
--- 
a/platforms/spring-boot/components-starter/camel-mongodb3-starter/src/main/java/org/apache/camel/component/mongodb3/springboot/MongoDbComponentConfiguration.java
+++ 
b/platforms/spring-boot/components-starter/camel-mongodb3-starter/src/main/java/org/apache/camel/component/mongodb3/springboot/MongoDbComponentConfiguration.java
@@ -37,6 +37,12 @@ public class MongoDbComponentConfiguration
      */
     private Boolean enabled;
     /**
+     * Set a client used for connection: all endpoints generated from the
+     * component will share this connection bean. The option is a
+     * com.mongodb.MongoClient type.
+     */
+    private String mongoConnection;
+    /**
      * Whether the component should resolve property placeholders on itself 
when
      * starting. Only properties which are of String type can use property
      * placeholders.
@@ -48,6 +54,14 @@ public class MongoDbComponentConfiguration
      */
     private Boolean basicPropertyBinding = false;
 
+    public String getMongoConnection() {
+        return mongoConnection;
+    }
+
+    public void setMongoConnection(String mongoConnection) {
+        this.mongoConnection = mongoConnection;
+    }
+
     public Boolean getResolvePropertyPlaceholders() {
         return resolvePropertyPlaceholders;
     }

Reply via email to