Claus Ibsen created CAMEL-19244:
-----------------------------------

             Summary: camel-bean - Add signature parameter to specify parameter 
types
                 Key: CAMEL-19244
                 URL: https://issues.apache.org/jira/browse/CAMEL-19244
             Project: Camel
          Issue Type: Improvement
          Components: camel-bean, camel-core
            Reporter: Claus Ibsen


Related to CAMEL-19104, but its also needed if you invoked some methods from 
Java or elsewhere where you can't specify the exact type

<simple>Absolute ${bean:type:java.lang.Math?method=abs(-5)}</simple>

Here abs method has floag, double, int, ... methods and Camel has an ambigious 
expcetion. So we need to specify that we want the int method etc

<simple>Absolute 
${bean:type:java.lang.Math?method=abs(-5)&signature=(int.class)}</simple>

Or we allow to specify the singature as part of method (when you use .class 
syntax):

<simple>Absolute ${bean:type:java.lang.Math?method=abs(int.class -5)}</simple>




--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to