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

camel-core - Compiled simple language

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.7.0
    • camel-core
    • None
    • Unknown

    Description

      Lets look at if we can provide an alternative to simple language that gets compiled during initialization of Camel. However for compilation then the csimple would need to have type information when using OGNL method calls as simple is dynamic and uses duck typing.

      The camel-joor should be more focused on pure Java code script and not a new simple language. jOOR also have some limitations such as cant run with fat-jar style for Spring Boot. Also it wont work on native compiled and it uses a reflective method call to call the joor script.

      For csimple we can look at

      • byte buddy
      • java assist
      • scan source code via a maven plugin and detect simple language (we do this for the camel-route-parser) and then source code generate in src/generated which then gets compiled with the regular compiler. And then those code can be loaded the same way we do with configurers etc which means no reflection.

      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: