You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2023/04/03 14:12:00 UTC
[jira] [Created] (CAMEL-19244) camel-bean - Add signature parameter to specify parameter types
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)