FAQ
Repository: camel
Updated Branches:
   refs/heads/master 520295b22 -> a63d1649b


[CAMEL-8808] Added endpoint documentation.


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

Branch: refs/heads/master
Commit: a63d1649b76e3a6872d38662ab8cc9b9fe1451b3
Parents: 520295b
Author: Henryk Konsek <hekonsek@gmail.com>
Authored: Wed May 27 22:46:21 2015 +0200
Committer: Henryk Konsek <hekonsek@gmail.com>
Committed: Wed May 27 22:46:21 2015 +0200

----------------------------------------------------------------------
  .../org/apache/camel/component/grape/GrapeComponent.groovy | 8 ++++++--
  .../org/apache/camel/component/grape/GrapeEndpoint.groovy | 5 ++++-
  2 files changed, 10 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/a63d1649/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 a3d8d7b..663fcb5 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
@@ -16,12 +16,16 @@
   */
  package org.apache.camel.component.grape

-import org.apache.camel.impl.DefaultComponent
+import org.apache.camel.impl.UriEndpointComponent

-class GrapeComponent extends DefaultComponent {
+class GrapeComponent extends UriEndpointComponent {

      PatchesRepository patchesRepository = new FilePatchesRepository()

+ GrapeComponent(Class<GrapeEndpoint> endpointClass) {
+ super(endpointClass)
+ }
+
      @Override
      protected GrapeEndpoint createEndpoint(String uri, String remaining, Map<String, Object> parameters) {
          new GrapeEndpoint(uri, remaining, this)

http://git-wip-us.apache.org/repos/asf/camel/blob/a63d1649/components/camel-grape/src/main/groovy/org/apache/camel/component/grape/GrapeEndpoint.groovy
----------------------------------------------------------------------
diff --git a/components/camel-grape/src/main/groovy/org/apache/camel/component/grape/GrapeEndpoint.groovy b/components/camel-grape/src/main/groovy/org/apache/camel/component/grape/GrapeEndpoint.groovy
index 0053b54..3f0a08b 100644
--- a/components/camel-grape/src/main/groovy/org/apache/camel/component/grape/GrapeEndpoint.groovy
+++ b/components/camel-grape/src/main/groovy/org/apache/camel/component/grape/GrapeEndpoint.groovy
@@ -21,9 +21,12 @@ import org.apache.camel.Consumer
  import org.apache.camel.Processor
  import org.apache.camel.Producer
  import org.apache.camel.impl.DefaultEndpoint
+import org.apache.camel.spi.UriEndpoint

  import static groovy.grape.Grape.grab
+import static org.apache.camel.component.grape.MavenCoordinates.parseMavenCoordinates

+@UriEndpoint(scheme = "grape", title = "Grape", producerOnly = true, label = "management,deployment", syntax = "grape:defaultCoordinates")
  class GrapeEndpoint extends DefaultEndpoint {

      private final String defaultCoordinates
@@ -37,7 +40,7 @@ class GrapeEndpoint extends DefaultEndpoint {
          def classLoader = camelContext.applicationContextClassLoader
          def patchesRepository = camelContext.getComponent('grape', GrapeComponent.class).patchesRepository
          patchesRepository.listPatches().each {
- def coordinates = MavenCoordinates.parseMavenCoordinates(it)
+ def coordinates = parseMavenCoordinates(it)
              grab(classLoader: classLoader,
                      group: coordinates.groupId, module: coordinates.artifactId, version: coordinates.version)
          }

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcommits @
categoriescamel
postedMay 27, '15 at 8:46p
activeMay 27, '15 at 8:46p
posts1
users1
websitecamel.apache.org

1 user in discussion

Hekonsek: 1 post

People

Translate

site design / logo © 2018 Grokbase