Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
Unknown
Description
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>
Attachments
Issue Links
- is related to
-
CAMEL-19104 camel-bean - Move parameter type matching to a new parameterTypes option
- Resolved