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 19:10:00 UTC

[jira] [Commented] (CAMEL-19244) camel-bean - Add signature parameter to specify parameter types

    [ https://issues.apache.org/jira/browse/CAMEL-19244?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17708081#comment-17708081 ] 

Claus Ibsen commented on CAMEL-19244:
-------------------------------------

TODO: unit tests in camel-core
TODO: update docs

> 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
>            Assignee: Claus Ibsen
>            Priority: Major
>             Fix For: 4.0-M3, 4.0
>
>
> 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)