camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [2/3] git commit: Added @UriParams for camel-twitter
Date Sat, 08 Feb 2014 08:06:29 GMT
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/2fb8652a
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/2fb8652a
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/2fb8652a

Branch: refs/heads/camel-2.12.x
Commit: 2fb8652a9eaed1179e93a7b994111de4b58e3d5a
Parents: 60011b9
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Sat Feb 8 08:23:40 2014 +0100
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Sat Feb 8 09:07:37 2014 +0100

----------------------------------------------------------------------
 .../org/apache/camel/component/twitter/TwitterConfiguration.java | 2 ++
 .../apache/camel/component/twitter/TwitterEndpointDirect.java    | 4 ++++
 .../org/apache/camel/component/twitter/TwitterEndpointEvent.java | 4 ++++
 .../apache/camel/component/twitter/TwitterEndpointPolling.java   | 4 ++++
 4 files changed, 14 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/2fb8652a/components/camel-twitter/src/main/java/org/apache/camel/component/twitter/TwitterConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-twitter/src/main/java/org/apache/camel/component/twitter/TwitterConfiguration.java
b/components/camel-twitter/src/main/java/org/apache/camel/component/twitter/TwitterConfiguration.java
index 19e6b20..e693daa 100644
--- a/components/camel-twitter/src/main/java/org/apache/camel/component/twitter/TwitterConfiguration.java
+++ b/components/camel-twitter/src/main/java/org/apache/camel/component/twitter/TwitterConfiguration.java
@@ -21,6 +21,7 @@ import java.text.SimpleDateFormat;
 import java.util.Date;
 
 import org.apache.camel.spi.UriParam;
+import org.apache.camel.spi.UriParams;
 import twitter4j.Twitter;
 import twitter4j.TwitterFactory;
 import twitter4j.TwitterStream;
@@ -28,6 +29,7 @@ import twitter4j.TwitterStreamFactory;
 import twitter4j.conf.Configuration;
 import twitter4j.conf.ConfigurationBuilder;
 
+@UriParams
 public class TwitterConfiguration {
 
     /**

http://git-wip-us.apache.org/repos/asf/camel/blob/2fb8652a/components/camel-twitter/src/main/java/org/apache/camel/component/twitter/TwitterEndpointDirect.java
----------------------------------------------------------------------
diff --git a/components/camel-twitter/src/main/java/org/apache/camel/component/twitter/TwitterEndpointDirect.java
b/components/camel-twitter/src/main/java/org/apache/camel/component/twitter/TwitterEndpointDirect.java
index 0e4d0c9..e1be501 100644
--- a/components/camel-twitter/src/main/java/org/apache/camel/component/twitter/TwitterEndpointDirect.java
+++ b/components/camel-twitter/src/main/java/org/apache/camel/component/twitter/TwitterEndpointDirect.java
@@ -54,6 +54,10 @@ public class TwitterEndpointDirect extends DirectEndpoint implements TwitterEndp
         return properties;
     }
 
+    public void setProperties(TwitterConfiguration properties) {
+        this.properties = properties;
+    }
+
     @Override
     public EndpointType getEndpointType() {
         return EndpointType.DIRECT;

http://git-wip-us.apache.org/repos/asf/camel/blob/2fb8652a/components/camel-twitter/src/main/java/org/apache/camel/component/twitter/TwitterEndpointEvent.java
----------------------------------------------------------------------
diff --git a/components/camel-twitter/src/main/java/org/apache/camel/component/twitter/TwitterEndpointEvent.java
b/components/camel-twitter/src/main/java/org/apache/camel/component/twitter/TwitterEndpointEvent.java
index fb0fbc5..6d7d009 100644
--- a/components/camel-twitter/src/main/java/org/apache/camel/component/twitter/TwitterEndpointEvent.java
+++ b/components/camel-twitter/src/main/java/org/apache/camel/component/twitter/TwitterEndpointEvent.java
@@ -48,6 +48,10 @@ public class TwitterEndpointEvent extends DirectEndpoint implements TwitterEndpo
         return properties;
     }
 
+    public void setProperties(TwitterConfiguration properties) {
+        this.properties = properties;
+    }
+
     @Override
     public EndpointType getEndpointType() {
         return EndpointType.EVENT;

http://git-wip-us.apache.org/repos/asf/camel/blob/2fb8652a/components/camel-twitter/src/main/java/org/apache/camel/component/twitter/TwitterEndpointPolling.java
----------------------------------------------------------------------
diff --git a/components/camel-twitter/src/main/java/org/apache/camel/component/twitter/TwitterEndpointPolling.java
b/components/camel-twitter/src/main/java/org/apache/camel/component/twitter/TwitterEndpointPolling.java
index 5db48dd..7fec7b6 100644
--- a/components/camel-twitter/src/main/java/org/apache/camel/component/twitter/TwitterEndpointPolling.java
+++ b/components/camel-twitter/src/main/java/org/apache/camel/component/twitter/TwitterEndpointPolling.java
@@ -59,6 +59,10 @@ public class TwitterEndpointPolling extends DefaultPollingEndpoint implements
Tw
         return properties;
     }
 
+    public void setProperties(TwitterConfiguration properties) {
+        this.properties = properties;
+    }
+
     @Override
     public EndpointType getEndpointType() {
         return EndpointType.POLLING;


Mime
View raw message