You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2019/09/10 09:32:39 UTC

[camel] 01/05: CAMEL-13887 - camel-mongodb-gridfs - Mongo to MongoClient

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

commit ab3391c3a81585c91dc49e764a6782391fadb129
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Sep 10 11:24:03 2019 +0200

    CAMEL-13887 - camel-mongodb-gridfs - Mongo to MongoClient
---
 .../org/apache/camel/component/mongodb/gridfs/GridFsEndpoint.java   | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/components/camel-mongodb-gridfs/src/main/java/org/apache/camel/component/mongodb/gridfs/GridFsEndpoint.java b/components/camel-mongodb-gridfs/src/main/java/org/apache/camel/component/mongodb/gridfs/GridFsEndpoint.java
index 2803fab..bf96120 100644
--- a/components/camel-mongodb-gridfs/src/main/java/org/apache/camel/component/mongodb/gridfs/GridFsEndpoint.java
+++ b/components/camel-mongodb-gridfs/src/main/java/org/apache/camel/component/mongodb/gridfs/GridFsEndpoint.java
@@ -77,7 +77,7 @@ public class GridFsEndpoint extends DefaultEndpoint {
     private String fileAttributeName = "camel-processed";
 
 
-    private Mongo mongoConnection;
+    private MongoClient mongoConnection;
     private DB db;
     private GridFS gridFs;
     private DBCollection filesCollection;
@@ -156,7 +156,7 @@ public class GridFsEndpoint extends DefaultEndpoint {
         this.connectionBean = connectionBean;
     }
 
-    public Mongo getMongoConnection() {
+    public MongoClient getMongoConnection() {
         return mongoConnection;
     }
 
@@ -165,7 +165,7 @@ public class GridFsEndpoint extends DefaultEndpoint {
      *
      * @param mongoConnection the connection to the database
      */
-    public void setMongoConnection(Mongo mongoConnection) {
+    public void setMongoConnection(MongoClient mongoConnection) {
         this.mongoConnection = mongoConnection;
     }