Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-19244

camel-bean - Add signature parameter to specify parameter types

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 4.0-M3, 4.0.0
    • camel-bean, camel-core
    • 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

          Activity

            People

              davsclaus Claus Ibsen
              davsclaus Claus Ibsen
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: