You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2018/09/23 14:18:13 UTC

[camel] branch master updated: CAMEL-12826: Camel Grape component is missing documentation for some endpoints

This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/master by this push:
     new 1babebb  CAMEL-12826: Camel Grape component is missing documentation for some endpoints
1babebb is described below

commit 1babebbf3f46afdf1c6afae909173ecb438c6791
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Sun Sep 23 16:17:50 2018 +0200

    CAMEL-12826: Camel Grape component is missing documentation for some endpoints
---
 components/camel-grape/src/main/docs/grape-component.adoc   |  4 ++--
 .../org/apache/camel/component/grape/GrapeComponent.groovy  |  8 ++------
 .../resources/org/apache/camel/component/grape/grape.json   | 13 +++++++++----
 3 files changed, 13 insertions(+), 12 deletions(-)

diff --git a/components/camel-grape/src/main/docs/grape-component.adoc b/components/camel-grape/src/main/docs/grape-component.adoc
index 2f3644a..b241aba 100644
--- a/components/camel-grape/src/main/docs/grape-component.adoc
+++ b/components/camel-grape/src/main/docs/grape-component.adoc
@@ -41,7 +41,7 @@ with the following path and query parameters:
 [width="100%",cols="2,5,^1,2",options="header"]
 |===
 | Name | Description | Default | Type
-| *defaultCoordinates* | *Required* Maven coordinates to use as default to grab if the message body is empty |  | String
+| *defaultCoordinates* | *Required* Maven coordinates to use as default to grab if the message body is empty. |  | String
 |===
 
 
@@ -51,7 +51,7 @@ with the following path and query parameters:
 [width="100%",cols="2,5,^1,2",options="header"]
 |===
 | Name | Description | Default | Type
-| *synchronous* (advanced) | Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported). | false | boolean
+| *synchronous* (producer) | Sets whether synchronous processing should be strictly used or Camel is allowed to use asynchronous processing (if supported). | false | boolean
 |===
 // endpoint options: END
 
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 9596da1..3c663e8 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
@@ -17,18 +17,14 @@
 package org.apache.camel.component.grape
 
 import org.apache.camel.CamelContext
-import org.apache.camel.impl.UriEndpointComponent
+import org.apache.camel.impl.DefaultComponent
 import org.apache.camel.spi.Metadata
 
-class GrapeComponent extends UriEndpointComponent {
+class GrapeComponent extends DefaultComponent {
 
 	@Metadata(label = "advanced", description = "Implementation of org.apache.camel.component.grape.PatchesRepository, by default: FilePatchesRepository")
     private PatchesRepository patchesRepository = new FilePatchesRepository()
 
-    GrapeComponent() {
-        super(GrapeEndpoint.class)
-    }
-
     @Override
     protected GrapeEndpoint createEndpoint(String uri, String remaining, Map<String, Object> parameters) {
         GrapeEndpoint grapeEndpoint = new GrapeEndpoint(uri, remaining, this)
diff --git a/components/camel-grape/src/main/resources/org/apache/camel/component/grape/grape.json b/components/camel-grape/src/main/resources/org/apache/camel/component/grape/grape.json
index b5c56bc..f8e36a2 100644
--- a/components/camel-grape/src/main/resources/org/apache/camel/component/grape/grape.json
+++ b/components/camel-grape/src/main/resources/org/apache/camel/component/grape/grape.json
@@ -7,18 +7,23 @@
     "description": "Grape component allows you to fetch, load and manage additional jars when CamelContext is running.",
     "firstVersion": "2.16.0",
     "label": "management,deployment",
-    "producerOnly": "true",
+    "deprecated": false,
+    "deprecationNote": "",
+    "async": false,
+    "consumerOnly": false,
+    "producerOnly": true,
     "javaType": "org.apache.camel.component.grape.GrapeEndpoint",
     "groupId": "org.apache.camel",
     "artifactId": "camel-grape",
     "version": "ARTIFACT_VERSION"
   },
   "componentProperties": {
+    "patchesRepository": { "kind": "property", "displayName": "Patches Repository", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "org.apache.camel.component.grape.PatchesRepository", "deprecated": false, "secret": false, "description": "Implementation of org.apache.camel.component.grape.PatchesRepository, by default: FilePatchesRepository" },
+    "resolvePropertyPlaceholders": { "kind": "property", "displayName": "Resolve Property Placeholders", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": true, "description": "Whether the component should resolve property placeholders on itself when starting. Only properties which are of String type can use property placeholders." }
   },
   "properties": {
-    "defaultCoordinates": { "kind": "path", "required": "true", "type": "string", "javaType": "java.lang.String", "deprecated": "false", "description": "Maven coordinates to use as default to grab if the message body is empty." },
-    "exchangePattern": { "kind": "parameter", "type": "string", "javaType": "org.apache.camel.ExchangePattern", "enum": [ "InOnly", "RobustInOnly", "InOut", "InOptionalOut", "OutOnly", "RobustOutOnly", "OutIn", "OutOptionalIn" ], "deprecated": "false", "defaultValue": "InOnly", "description": "Sets the default exchange pattern when creating an exchange." },
-    "synchronous": { "kind": "parameter", "type": "boolean", "javaType": "boolean", "deprecated": "false", "defaultValue": "false", "description": "Sets whether synchronous processing should be strictly used or Camel is allowed to use asynchronous processing (if supported)." }
+    "defaultCoordinates": { "kind": "path", "displayName": "Default Coordinates", "group": "producer", "required": "true", "type": "string", "javaType": "java.lang.String", "deprecated": "false", "description": "Maven coordinates to use as default to grab if the message body is empty." },
+    "synchronous": { "kind": "parameter", "displayName": "Synchronous", "group": "producer", "type": "boolean", "javaType": "boolean", "deprecated": "false", "defaultValue": "false", "description": "Sets whether synchronous processing should be strictly used or Camel is allowed to use asynchronous processing (if supported)." }
   }
 }