[ 
https://issues.apache.org/jira/browse/CAMEL-5402?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Anton Koscejev updated CAMEL-5402:
----------------------------------

    Description: 
Parameter Binding Annotations (e.g., @Property, @Header, @Body) could be used 
to annotate an interface being proxied by Camel Proxy.
http://camel.apache.org/parameter-binding-annotations.html used for 
http://camel.apache.org/using-camelproxy.html

Currently these are used to identify which parameters Camel should provide when 
invoking a method of a bean. With the proposed functionality they could also be 
used to identify which parameter in the bean invocation map to body, and which 
parameters should be used to modify properties/headers. Possibly bypassing the 
creation of BeanInvocation object altogether, if @Body is specified.

Example:
public interface MyListener {
    void sendBodyWithHeader(@Body String body, 
@Header("foo") String headerFoo);
}


And when a Camel Proxy is created, invoking it will result in exchange having 
the String body as the OUT message with the header "foo" set to String 
headerFoo.

  was:
Parameter Binding Annotations (e.g., @Property, @Header, @Body) could be used 
to annotate an interface being proxied by Camel Proxy.
http://camel.apache.org/parameter-binding-annotations.html used for 
http://camel.apache.org/using-camelproxy.html

Currently these are used to identify which parameters Camel should provide when 
invoking a method of a bean. With the proposed functionality they could also be 
used to identify which parameter in the bean invocation map to body, and which 
parameters should be used to modify properties/headers. Possibly bypassing the 
creation of BeanInvocation object altogether, if @Body is specified.

Example:
{quote}
public interface MyListener {
    void sendBodyWithHeader(@Body String body, 
@Header("foo") String headerFoo);
}
{quote}
And when a Camel Proxy is created, invoking it will result in exchange having 
the String body as the OUT message with the header "foo" set to String 
headerFoo.

    
> Parameter Binding Annotations used for Camel Proxy
> --------------------------------------------------
>
>                 Key: CAMEL-5402
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5402
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 2.9.2
>            Reporter: Anton Koscejev
>            Priority: Minor
>              Labels: annotations, bean, binding, parameters, proxy
>
> Parameter Binding Annotations (e.g., @Property, @Header, @Body) could be used 
> to annotate an interface being proxied by Camel Proxy.
> http://camel.apache.org/parameter-binding-annotations.html used for 
> http://camel.apache.org/using-camelproxy.html
> Currently these are used to identify which parameters Camel should provide 
> when invoking a method of a bean. With the proposed functionality they could 
> also be used to identify which parameter in the bean invocation map to body, 
> and which parameters should be used to modify properties/headers. Possibly 
> bypassing the creation of BeanInvocation object altogether, if @Body is 
> specified.
> Example:
> public interface MyListener {
>     void sendBodyWithHeader(@Body String body, 
> @Header("foo") String headerFoo);
> }
> And when a Camel Proxy is created, invoking it will result in exchange having 
> the String body as the OUT message with the header "foo" set to String 
> headerFoo.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to