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 18:48:00 UTC

[jira] [Assigned] (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:all-tabpanel ]

Claus Ibsen reassigned CAMEL-19244:
-----------------------------------

    Assignee: Claus Ibsen

> 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
>
> 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)