camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hekon...@apache.org
Subject camel git commit: Grape component now copies URI options to the endpoint.
Date Fri, 29 May 2015 11:15:17 GMT
Repository: camel
Updated Branches:
  refs/heads/master b30d3c29f -> a678aee80


Grape component now copies URI options to the endpoint.


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

Branch: refs/heads/master
Commit: a678aee8036e04a62110d60c1b74fed6eb0f940e
Parents: b30d3c2
Author: Henryk Konsek <hekonsek@gmail.com>
Authored: Fri May 29 13:15:11 2015 +0200
Committer: Henryk Konsek <hekonsek@gmail.com>
Committed: Fri May 29 13:15:11 2015 +0200

----------------------------------------------------------------------
 .../org/apache/camel/component/grape/GrapeComponent.groovy       | 4 +++-
 .../org/apache/camel/component/grape/GrapeComponentTest.groovy   | 1 -
 2 files changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/a678aee8/components/camel-grape/src/main/groovy/org/apache/camel/component/grape/GrapeComponent.groovy
----------------------------------------------------------------------
diff --git a/components/camel-grape/src/main/groovy/org/apache/camel/component/grape/GrapeComponent.groovy
b/components/camel-grape/src/main/groovy/org/apache/camel/component/grape/GrapeComponent.groovy
index 63df020..dc1ce3a 100644
--- a/components/camel-grape/src/main/groovy/org/apache/camel/component/grape/GrapeComponent.groovy
+++ b/components/camel-grape/src/main/groovy/org/apache/camel/component/grape/GrapeComponent.groovy
@@ -28,7 +28,9 @@ class GrapeComponent extends UriEndpointComponent {
 
     @Override
     protected GrapeEndpoint createEndpoint(String uri, String remaining, Map<String, Object>
parameters) {
-        new GrapeEndpoint(uri, remaining, this)
+        GrapeEndpoint grapeEndpoint = new GrapeEndpoint(uri, remaining, this)
+        setProperties(grapeEndpoint, parameters);
+        grapeEndpoint
     }
 
     PatchesRepository getPatchesRepository() {

http://git-wip-us.apache.org/repos/asf/camel/blob/a678aee8/components/camel-grape/src/test/groovy/org/apache/camel/component/grape/GrapeComponentTest.groovy
----------------------------------------------------------------------
diff --git a/components/camel-grape/src/test/groovy/org/apache/camel/component/grape/GrapeComponentTest.groovy
b/components/camel-grape/src/test/groovy/org/apache/camel/component/grape/GrapeComponentTest.groovy
index 15bbee6..86272c3 100644
--- a/components/camel-grape/src/test/groovy/org/apache/camel/component/grape/GrapeComponentTest.groovy
+++ b/components/camel-grape/src/test/groovy/org/apache/camel/component/grape/GrapeComponentTest.groovy
@@ -18,7 +18,6 @@ package org.apache.camel.component.grape
 
 import org.apache.camel.ServiceStatus
 import org.apache.camel.builder.RouteBuilder
-import org.apache.camel.component.grape.FilePatchesRepository
 import org.apache.camel.impl.DefaultCamelContext
 import org.junit.Assert
 import org.junit.Before


Mime
View raw message