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 2020/10/18 15:12:00 UTC

[jira] [Created] (CAMEL-15704) camel-core - Compiled simple language

Claus Ibsen created CAMEL-15704:
-----------------------------------

             Summary: camel-core - Compiled simple language
                 Key: CAMEL-15704
                 URL: https://issues.apache.org/jira/browse/CAMEL-15704
             Project: Camel
          Issue Type: New Feature
          Components: camel-core
            Reporter: Claus Ibsen
            Assignee: Claus Ibsen
             Fix For: 3.7.0


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.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)