camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin Hinners (JIRA)" <>
Subject [jira] [Commented] (CAMEL-5402) Parameter Binding Annotations used for Camel Proxy
Date Tue, 11 Aug 2015 16:35:46 GMT


Kevin Hinners commented on CAMEL-5402:

Thanks Claus. Apache Camel is my favorite open source project and it just got even better!

> Parameter Binding Annotations used for Camel Proxy
> --------------------------------------------------
>                 Key: CAMEL-5402
>                 URL:
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 2.9.2
>            Reporter: Anton Koscejev
>            Assignee: Claus Ibsen
>            Priority: Minor
>              Labels: annotations, bean, binding, parameters, proxy
>             Fix For: 2.16.0
> Parameter Binding Annotations (e.g., @Property, @Header, @Body) could be used to annotate
an interface being proxied by Camel Proxy.
> used for
> 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 {
> &nbsp;&nbsp;&nbsp;&nbsp;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 was sent by Atlassian JIRA

View raw message