You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Martin Krasser (JIRA)" <ji...@apache.org> on 2011/06/02 16:46:47 UTC

[jira] [Commented] (CAMEL-4040) Inherit parameter binding annotations from superclasses and interfaces

    [ https://issues.apache.org/jira/browse/CAMEL-4040?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13042802#comment-13042802 ] 

Martin Krasser commented on CAMEL-4040:
---------------------------------------

This also allows parameter binding on objects that have been created with {{Proxy.newProxyInstance}}.

> Inherit parameter binding annotations from superclasses and interfaces
> ----------------------------------------------------------------------
>
>                 Key: CAMEL-4040
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4040
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 2.7.1
>            Reporter: Martin Krasser
>            Assignee: Martin Krasser
>             Fix For: 2.8.0
>
>
> Currently, parameter binding annotations (such as @Header, @Body etc) must be placed on a bean's implementation class in order to be recognized by Camel. Inheritance of these annotations from a bean's superclass and interfaces should be supported as well. For example:
> {code:java}
> public interface BeanIntf {
>     void foo(@Header String bar);
> }
> public class BeanImpl implements BeanIntf {
>     public void foo(String bar) {
>         // ...
>     }
> }
> {code}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira