camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <>
Subject [jira] Created: (CAMEL-840) IntrospectionSupport to support overloaded setter methods
Date Thu, 21 Aug 2008 10:57:52 GMT
IntrospectionSupport to support overloaded setter methods

                 Key: CAMEL-840
             Project: Apache Camel
          Issue Type: Improvement
          Components: camel-core
    Affects Versions: 1.5.0
            Reporter: Claus Ibsen

If you have overloaded setter methods for a given property Camel can only use the first found.

    private Expression expression;

    public void setExpression(Expression expression) {
        this.expression = expression;

    public void setExpression(String fileLanguageExpression) {
        this.expression = FileLanguage.file(fileLanguageExpression);

isn't supported. As Camel will try to convert the type before finding the 2nd setter method
with the correct type.

Maybe the solution is to improve the code so it finds the String setter if the input is a
string property instead of the Expression object, ie find the setter with a 100% match and
use it, if not then fallback to type convertions.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message