Repository: camel
Updated Branches:
  refs/heads/camel-2.15.x 63ac38d26 -> 4f4109a80
  refs/heads/master 011f0a0e8 -> 249b2e8bd


Polished


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

Branch: refs/heads/master
Commit: 988e50a0f30014e5bfca31444fb2896591d66908
Parents: 011f0a0
Author: Claus Ibsen <davscl...@apache.org>
Authored: Tue Aug 11 09:58:08 2015 +0200
Committer: Claus Ibsen <davscl...@apache.org>
Committed: Tue Aug 11 10:42:49 2015 +0200

----------------------------------------------------------------------
 .../camel/component/bean/AbstractCamelInvocationHandler.java     | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/988e50a0/camel-core/src/main/java/org/apache/camel/component/bean/AbstractCamelInvocationHandler.java
----------------------------------------------------------------------
diff --git 
a/camel-core/src/main/java/org/apache/camel/component/bean/AbstractCamelInvocationHandler.java
 
b/camel-core/src/main/java/org/apache/camel/component/bean/AbstractCamelInvocationHandler.java
index 5a244da..5a105c5 100644
--- 
a/camel-core/src/main/java/org/apache/camel/component/bean/AbstractCamelInvocationHandler.java
+++ 
b/camel-core/src/main/java/org/apache/camel/component/bean/AbstractCamelInvocationHandler.java
@@ -104,9 +104,11 @@ public abstract class AbstractCamelInvocationHandler 
implements InvocationHandle
     @SuppressWarnings("unchecked")
     protected Object invokeProxy(final Method method, final ExchangePattern 
pattern, Object[] args, boolean binding) throws Throwable {
         final Exchange exchange = new DefaultExchange(endpoint, pattern);
-        // use method info to map to exchange
 
         if (binding) {
+            // in binding mode we bind the passed in arguments (args) to the 
created exchange
+            // using the existing Camel @Body, @Header, @Headers, 
@ExchangeProperty annotations
+            // if no annotation then its bound as the message body
             int index = 0;
             for (Annotation[] row : method.getParameterAnnotations()) {
                 Object value = args[index];

Reply via email to