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