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 2016/12/31 09:49:12 UTC
camel git commit: Add interceptFrom as consumer
Repository: camel
Updated Branches:
refs/heads/master cdb001dc5 -> 7ee49fe05
Add interceptFrom as consumer
Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/7ee49fe0
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/7ee49fe0
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/7ee49fe0
Branch: refs/heads/master
Commit: 7ee49fe05e4dd2b09b5972d5e392921db534a931
Parents: cdb001d
Author: Claus Ibsen <da...@apache.org>
Authored: Sat Dec 31 10:49:05 2016 +0100
Committer: Claus Ibsen <da...@apache.org>
Committed: Sat Dec 31 10:49:05 2016 +0100
----------------------------------------------------------------------
.../apache/camel/parser/helper/CamelJavaParserHelper.java | 10 ++++++++++
1 file changed, 10 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/7ee49fe0/tooling/camel-route-parser/src/main/java/org/apache/camel/parser/helper/CamelJavaParserHelper.java
----------------------------------------------------------------------
diff --git a/tooling/camel-route-parser/src/main/java/org/apache/camel/parser/helper/CamelJavaParserHelper.java b/tooling/camel-route-parser/src/main/java/org/apache/camel/parser/helper/CamelJavaParserHelper.java
index b433543..92452b6 100644
--- a/tooling/camel-route-parser/src/main/java/org/apache/camel/parser/helper/CamelJavaParserHelper.java
+++ b/tooling/camel-route-parser/src/main/java/org/apache/camel/parser/helper/CamelJavaParserHelper.java
@@ -242,6 +242,16 @@ public final class CamelJavaParserHelper {
}
}
}
+ if ("interceptFrom".equals(name)) {
+ List args = mi.arguments();
+ // the first argument is where the uri is
+ if (args != null && args.size() >= 1) {
+ Object arg = args.get(0);
+ if (isValidArgument(name, arg)) {
+ extractEndpointUriFromArgument(name, clazz, block, uris, arg, strings, fields);
+ }
+ }
+ }
if ("pollEnrich".equals(name)) {
List args = mi.arguments();
// the first argument is where the uri is