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 2017/11/08 08:59:52 UTC

[camel] branch master updated (8ebf3e6 -> f6d3a3f)

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

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


    from 8ebf3e6  Aligned Artemis example to version 2.4.0
     new 5c9f3b5  CAMEL-11997: Fixed camel-archetype-component
     new f6d3a3f  CAMEL-11997: Fixed camel-archetype-api-component

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../src/main/java/__name__Endpoint.java                      |  3 ++-
 .../archetype-resources/src/main/java/__name__Component.java | 12 ++----------
 .../archetype-resources/src/main/java/__name__Endpoint.java  |  3 ++-
 3 files changed, 6 insertions(+), 12 deletions(-)

-- 
To stop receiving notification emails like this one, please contact
['"commits@camel.apache.org" <co...@camel.apache.org>'].

[camel] 01/02: CAMEL-11997: Fixed camel-archetype-component

Posted by da...@apache.org.
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

commit 5c9f3b5a235c5ad7ab41b7547bb897555724a9a9
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Wed Nov 8 09:54:54 2017 +0100

    CAMEL-11997: Fixed camel-archetype-component
---
 .../archetype-resources/src/main/java/__name__Component.java | 12 ++----------
 .../archetype-resources/src/main/java/__name__Endpoint.java  |  3 ++-
 2 files changed, 4 insertions(+), 11 deletions(-)

diff --git a/archetypes/camel-archetype-component/src/main/resources/archetype-resources/src/main/java/__name__Component.java b/archetypes/camel-archetype-component/src/main/resources/archetype-resources/src/main/java/__name__Component.java
index 41ff044..68824ac 100644
--- a/archetypes/camel-archetype-component/src/main/resources/archetype-resources/src/main/java/__name__Component.java
+++ b/archetypes/camel-archetype-component/src/main/resources/archetype-resources/src/main/java/__name__Component.java
@@ -21,21 +21,13 @@ import java.util.Map;
 import org.apache.camel.CamelContext;
 import org.apache.camel.Endpoint;
 
-import org.apache.camel.impl.UriEndpointComponent;
+import org.apache.camel.impl.DefaultComponent;
 
 /**
  * Represents the component that manages {@link ${name}Endpoint}.
  */
-public class ${name}Component extends UriEndpointComponent {
+public class ${name}Component extends DefaultComponent {
     
-    public ${name}Component() {
-        super(${name}Endpoint.class);
-    }
-
-    public ${name}Component(CamelContext context) {
-        super(context, ${name}Endpoint.class);
-    }
-
     protected Endpoint createEndpoint(String uri, String remaining, Map<String, Object> parameters) throws Exception {
         Endpoint endpoint = new ${name}Endpoint(uri, this);
         setProperties(endpoint, parameters);
diff --git a/archetypes/camel-archetype-component/src/main/resources/archetype-resources/src/main/java/__name__Endpoint.java b/archetypes/camel-archetype-component/src/main/resources/archetype-resources/src/main/java/__name__Endpoint.java
index 2520197..be582ad 100644
--- a/archetypes/camel-archetype-component/src/main/resources/archetype-resources/src/main/java/__name__Endpoint.java
+++ b/archetypes/camel-archetype-component/src/main/resources/archetype-resources/src/main/java/__name__Endpoint.java
@@ -28,7 +28,8 @@ import org.apache.camel.spi.UriPath;
 /**
  * Represents a ${name} endpoint.
  */
-@UriEndpoint(scheme = "${scheme}", title = "${name}", syntax="${scheme}:name", consumerClass = ${name}Consumer.class, label = "${name}")
+@UriEndpoint(firstVersion = "${version}", scheme = "${scheme}", title = "${name}", syntax="${scheme}:name", 
+             consumerClass = ${name}Consumer.class, label = "custom")
 public class ${name}Endpoint extends DefaultEndpoint {
     @UriPath @Metadata(required = "true")
     private String name;

-- 
To stop receiving notification emails like this one, please contact
"commits@camel.apache.org" <co...@camel.apache.org>.

[camel] 02/02: CAMEL-11997: Fixed camel-archetype-api-component

Posted by da...@apache.org.
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

commit f6d3a3fda60485611b25cca551cc262889810c48
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Wed Nov 8 09:56:17 2017 +0100

    CAMEL-11997: Fixed camel-archetype-api-component
---
 .../__artifactId__-component/src/main/java/__name__Endpoint.java       | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/archetypes/camel-archetype-api-component/src/main/resources/archetype-resources/__artifactId__-component/src/main/java/__name__Endpoint.java b/archetypes/camel-archetype-api-component/src/main/resources/archetype-resources/__artifactId__-component/src/main/java/__name__Endpoint.java
index 7f10526..f41278f 100644
--- a/archetypes/camel-archetype-api-component/src/main/resources/archetype-resources/__artifactId__-component/src/main/java/__name__Endpoint.java
+++ b/archetypes/camel-archetype-api-component/src/main/resources/archetype-resources/__artifactId__-component/src/main/java/__name__Endpoint.java
@@ -38,7 +38,8 @@ import ${package}.internal.${name}PropertiesHelper;
 /**
  * Represents a ${name} endpoint.
  */
-@UriEndpoint(scheme = "${scheme}", title = "${name}", syntax="${scheme}:name", consumerClass = ${name}Consumer.class, label = "${name}")
+@UriEndpoint(firstVersion = "${version}", scheme = "${scheme}", title = "${name}", syntax="${scheme}:name", 
+             consumerClass = ${name}Consumer.class, label = "custom")
 public class ${name}Endpoint extends AbstractApiEndpoint<${name}ApiName, ${name}Configuration> {
 
     @UriPath @Metadata(required = "true")

-- 
To stop receiving notification emails like this one, please contact
"commits@camel.apache.org" <co...@camel.apache.org>.