You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Jan Matèrne (jhm)" <ap...@materne.de> on 2013/02/06 21:08:16 UTC
http://camel.apache.org/bean-binding.html#BeanBinding-Parameterbinding
In the examples there is a method
public String doSomething(String body)
with a String as return type.
Directly under that this is written
"Or the Exchange example. Notice that the return type must be void when
there is only a single parameter:"
How does that fit - void return type and String return type?
Is the rule "void return type when one parameter" only valid for
Exchange-parameters?
Then it would be clearer to write that
"Or the Exchange example. Notice that the return type must be void when
there is only a single parameter of type Exchange:"
Jan
AW: http://camel.apache.org/bean-binding.html#BeanBinding-Parameterbinding
Posted by "Jan Matèrne (jhm)" <ap...@materne.de>.
cool ;)
Jan
-----Ursprüngliche Nachricht-----
Von: Willem jiang [mailto:willem.jiang@gmail.com]
Gesendet: Donnerstag, 7. Februar 2013 02:37
An: dev@camel.apache.org
Betreff: Re: http://camel.apache.org/bean-binding.html#BeanBinding-Parameterbinding
Hi Jan,
Thanks for the pointing that out, it makes document more easy to understand.
FYI I just updated the document with your suggestion.
--
Willem Jiang
Red Hat, Inc.
FuseSource is now part of Red Hat
Web: http://www.fusesource.com | http://www.redhat.com
Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English)
http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese)
Twitter: willemjiang
Weibo: 姜宁willem
On Thursday, February 7, 2013 at 4:08 AM, Jan Matèrne (jhm) wrote:
> In the examples there is a method
> public String doSomething(String body) with a String as return type.
> Directly under that this is written
> "Or the Exchange example. Notice that the return type must be void
> when there is only a single parameter:"
>
> How does that fit - void return type and String return type?
> Is the rule "void return type when one parameter" only valid for
> Exchange-parameters?
> Then it would be clearer to write that "Or the Exchange example.
> Notice that the return type must be void when there is only a single
> parameter of type Exchange:"
>
>
> Jan
Re:
http://camel.apache.org/bean-binding.html#BeanBinding-Parameterbinding
Posted by Willem jiang <wi...@gmail.com>.
Hi Jan,
Thanks for the pointing that out, it makes document more easy to understand.
FYI I just updated the document with your suggestion.
--
Willem Jiang
Red Hat, Inc.
FuseSource is now part of Red Hat
Web: http://www.fusesource.com | http://www.redhat.com
Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English)
http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese)
Twitter: willemjiang
Weibo: 姜宁willem
On Thursday, February 7, 2013 at 4:08 AM, Jan Matèrne (jhm) wrote:
> In the examples there is a method
> public String doSomething(String body)
> with a String as return type.
> Directly under that this is written
> "Or the Exchange example. Notice that the return type must be void when
> there is only a single parameter:"
>
> How does that fit - void return type and String return type?
> Is the rule "void return type when one parameter" only valid for
> Exchange-parameters?
> Then it would be clearer to write that
> "Or the Exchange example. Notice that the return type must be void when
> there is only a single parameter of type Exchange:"
>
>
> Jan