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 2018/01/26 07:03:29 UTC
[camel] 02/02: CAMEL-12185 - Update Javadoc to reflect docs
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 ffd3eb4fc8616f487d556d96bb7bbb61d38f9b03
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Jan 26 08:01:43 2018 +0100
CAMEL-12185 - Update Javadoc to reflect docs
---
.../org/apache/camel/component/mongodb/MongoDbEndpoint.java | 11 +++++------
.../org/apache/camel/component/mongodb3/MongoDbEndpoint.java | 12 +++++-------
2 files changed, 10 insertions(+), 13 deletions(-)
diff --git a/components/camel-mongodb/src/main/java/org/apache/camel/component/mongodb/MongoDbEndpoint.java b/components/camel-mongodb/src/main/java/org/apache/camel/component/mongodb/MongoDbEndpoint.java
index 76ab279..8a49868 100644
--- a/components/camel-mongodb/src/main/java/org/apache/camel/component/mongodb/MongoDbEndpoint.java
+++ b/components/camel-mongodb/src/main/java/org/apache/camel/component/mongodb/MongoDbEndpoint.java
@@ -98,11 +98,11 @@ public class MongoDbEndpoint extends DefaultEndpoint {
private String tailTrackCollection;
@UriParam(label = "tail")
private String tailTrackField;
- private MongoDbTailTrackingConfig tailTrackingConfig;
-
- @UriParam
+ @UriParam(label = "common")
private MongoDbOutputType outputType;
+ private MongoDbTailTrackingConfig tailTrackingConfig;
+
@UriParam(label = "tail", defaultValue = "LITERAL")
private MongoDBTailTrackingEnum tailTrackingStrategy;
@@ -645,9 +645,8 @@ public class MongoDbEndpoint extends DefaultEndpoint {
}
/**
- * Convert the output of the producer to the selected type : "DBObjectList", "DBObject" or "DBCursor".
- * DBObjectList or DBObject applies to findAll.
- * DBCursor applies to all other operations.
+ * Convert the output of the producer to the selected type : DBObjectList DBObject or DBCursor.
+ * DBObjectList or DBCursor applies to findAll and aggregate. DBObject applies to all other operations.
* @param outputType
*/
public void setOutputType(MongoDbOutputType outputType) {
diff --git a/components/camel-mongodb3/src/main/java/org/apache/camel/component/mongodb3/MongoDbEndpoint.java b/components/camel-mongodb3/src/main/java/org/apache/camel/component/mongodb3/MongoDbEndpoint.java
index 6ef4784..77fec41 100644
--- a/components/camel-mongodb3/src/main/java/org/apache/camel/component/mongodb3/MongoDbEndpoint.java
+++ b/components/camel-mongodb3/src/main/java/org/apache/camel/component/mongodb3/MongoDbEndpoint.java
@@ -103,10 +103,10 @@ public class MongoDbEndpoint extends DefaultEndpoint {
private String tailTrackCollection;
@UriParam(label = "tail")
private String tailTrackField;
- private MongoDbTailTrackingConfig tailTrackingConfig;
-
- @UriParam
+ @UriParam(label = "common")
private MongoDbOutputType outputType;
+
+ private MongoDbTailTrackingConfig tailTrackingConfig;
private MongoDatabase mongoDatabase;
private MongoCollection<Document> mongoCollection;
@@ -623,10 +623,8 @@ public class MongoDbEndpoint extends DefaultEndpoint {
}
/**
- * Convert the output of the producer to the selected type : "DocumentList",
- * "Document" or "MongoIterable". DocumentList or Document applies to
- * findAll. MongoIterable applies to all other operations.
- *
+ * Convert the output of the producer to the selected type : DocumentList Document or MongoIterable.
+ * DocumentList or MongoIterable applies to findAll and aggregate. Document applies to all other operations.
* @param outputType
*/
public void setOutputType(MongoDbOutputType outputType) {
--
To stop receiving notification emails like this one, please contact
acosentino@apache.org.