camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [1/2] git commit: Added @UriParams for camel-twitter
Date Sat, 08 Feb 2014 10:37:06 GMT
Updated Branches:
  refs/heads/camel-2.12.x bbd3d8d4f -> 0d456ee76
  refs/heads/master b26b6a429 -> 4b233f973


Added @UriParams for camel-twitter


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

Branch: refs/heads/master
Commit: 4b233f973bb569195bd79857cc5db449fb088df1
Parents: b26b6a4
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Sat Feb 8 11:37:47 2014 +0100
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Sat Feb 8 11:37:47 2014 +0100

----------------------------------------------------------------------
 .../org/apache/camel/component/twitter/TwitterComponent.java | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/4b233f97/components/camel-twitter/src/main/java/org/apache/camel/component/twitter/TwitterComponent.java
----------------------------------------------------------------------
diff --git a/components/camel-twitter/src/main/java/org/apache/camel/component/twitter/TwitterComponent.java
b/components/camel-twitter/src/main/java/org/apache/camel/component/twitter/TwitterComponent.java
index 1a6ca9b..673ccd0 100644
--- a/components/camel-twitter/src/main/java/org/apache/camel/component/twitter/TwitterComponent.java
+++ b/components/camel-twitter/src/main/java/org/apache/camel/component/twitter/TwitterComponent.java
@@ -20,18 +20,22 @@ import java.util.Map;
 
 import org.apache.camel.Endpoint;
 import org.apache.camel.component.twitter.data.EndpointType;
-import org.apache.camel.impl.DefaultComponent;
+import org.apache.camel.impl.UriEndpointComponent;
 
 /**
  * Twitter component
  */
-public class TwitterComponent extends DefaultComponent {
+public class TwitterComponent extends UriEndpointComponent {
 
     private String consumerKey;
     private String consumerSecret;
     private String accessToken;
     private String accessTokenSecret;
 
+    public TwitterComponent() {
+        super(TwitterEndpoint.class);
+    }
+
     protected Endpoint createEndpoint(String uri, String remaining, Map<String, Object>
parameters) throws Exception {
 
         TwitterConfiguration properties = new TwitterConfiguration();


Mime
View raw message