camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [15/16] camel git commit: Fixed invalid component json schema discovered by mvn camel:validate
Date Thu, 08 Dec 2016 14:12:48 GMT
Fixed invalid component json schema discovered by mvn camel:validate


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/dc7ed4d4
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/dc7ed4d4
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/dc7ed4d4

Branch: refs/heads/camel-2.18.x
Commit: dc7ed4d442ef0841a587fb0966e16921d1129da4
Parents: efe091d
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Thu Dec 8 14:48:18 2016 +0100
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Thu Dec 8 15:12:12 2016 +0100

----------------------------------------------------------------------
 .../camel/component/gridfs/GridFsConsumer.java  |  1 -
 .../camel/component/gridfs/GridFsEndpoint.java  | 10 ++------
 .../camel/component/gridfs/QueryStrategy.java   | 25 ++++++++++++++++++++
 3 files changed, 27 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/dc7ed4d4/components/camel-mongodb-gridfs/src/main/java/org/apache/camel/component/gridfs/GridFsConsumer.java
----------------------------------------------------------------------
diff --git a/components/camel-mongodb-gridfs/src/main/java/org/apache/camel/component/gridfs/GridFsConsumer.java
b/components/camel-mongodb-gridfs/src/main/java/org/apache/camel/component/gridfs/GridFsConsumer.java
index bfce711..6df4391 100644
--- a/components/camel-mongodb-gridfs/src/main/java/org/apache/camel/component/gridfs/GridFsConsumer.java
+++ b/components/camel-mongodb-gridfs/src/main/java/org/apache/camel/component/gridfs/GridFsConsumer.java
@@ -31,7 +31,6 @@ import com.mongodb.util.JSON;
 
 import org.apache.camel.Exchange;
 import org.apache.camel.Processor;
-import org.apache.camel.component.gridfs.GridFsEndpoint.QueryStrategy;
 import org.apache.camel.impl.DefaultConsumer;
 
 /**

http://git-wip-us.apache.org/repos/asf/camel/blob/dc7ed4d4/components/camel-mongodb-gridfs/src/main/java/org/apache/camel/component/gridfs/GridFsEndpoint.java
----------------------------------------------------------------------
diff --git a/components/camel-mongodb-gridfs/src/main/java/org/apache/camel/component/gridfs/GridFsEndpoint.java
b/components/camel-mongodb-gridfs/src/main/java/org/apache/camel/component/gridfs/GridFsEndpoint.java
index 13aa862..cb8f686 100644
--- a/components/camel-mongodb-gridfs/src/main/java/org/apache/camel/component/gridfs/GridFsEndpoint.java
+++ b/components/camel-mongodb-gridfs/src/main/java/org/apache/camel/component/gridfs/GridFsEndpoint.java
@@ -38,14 +38,8 @@ import org.slf4j.LoggerFactory;
  */
 @UriEndpoint(scheme = "gridfs", title = "MongoDBGridFS", syntax = "gridfs:connectionBean",
label = "database,nosql")
 public class GridFsEndpoint extends DefaultEndpoint {
-    
-    public enum QueryStrategy {
-        TimeStamp,
-        PersistentTimestamp,
-        FileAttribute,
-        TimeStampAndFileAttribute,
-        PersistentTimestampAndFileAttribute
-    };
+
+    ;
     public static final String GRIDFS_OPERATION = "gridfs.operation";
     public static final String GRIDFS_METADATA = "gridfs.metadata";
     public static final String GRIDFS_CHUNKSIZE = "gridfs.chunksize";

http://git-wip-us.apache.org/repos/asf/camel/blob/dc7ed4d4/components/camel-mongodb-gridfs/src/main/java/org/apache/camel/component/gridfs/QueryStrategy.java
----------------------------------------------------------------------
diff --git a/components/camel-mongodb-gridfs/src/main/java/org/apache/camel/component/gridfs/QueryStrategy.java
b/components/camel-mongodb-gridfs/src/main/java/org/apache/camel/component/gridfs/QueryStrategy.java
new file mode 100644
index 0000000..9b29f2a
--- /dev/null
+++ b/components/camel-mongodb-gridfs/src/main/java/org/apache/camel/component/gridfs/QueryStrategy.java
@@ -0,0 +1,25 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.gridfs;
+
+public enum QueryStrategy {
+    TimeStamp,
+    PersistentTimestamp,
+    FileAttribute,
+    TimeStampAndFileAttribute,
+    PersistentTimestampAndFileAttribute
+}


Mime
View raw message