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 06:30:00 UTC

[jira] [Comment Edited] (CAMEL-15697) camel-joor - Camel expression language using jOOR

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

Claus Ibsen edited comment on CAMEL-15697 at 10/18/20, 6:29 AM:
----------------------------------------------------------------

TODO: Configuration of alias and auto imports which can be done in a seperate file on the classpath like came-joor.properties
TODO: Output compile error with line numbers and error point to the code location that failed
TODO: Capture time spend compiling and report in logs and when stopping
TODO: Default alias for some convenience of getting headers and exchange properties
TODO: Maybe convenience for shorthand getter style or even the null safe operator.
TODO: Maybe add java.util.Optional API to Exchange and Message for getHeader / getProperty
TODO: More documentation and also use var style as its Java 11 onwards.
TODO: jmh tests


was (Author: davsclaus):
TODO: Configuration of alias and auto imports which can be done in a seperate file on the classpath like came-joor.properties
TODO: Output compile error with line numbers and error point to the code location that failed
TODO: Capture time spend compiling and report in logs and when stopping
TODO: Default alias for some convenience of getting headers and exchange properties
TODO: Maybe convenience for shorthand getter style or even the null safe operator.
TODO: Maybe add java.util.Optional API to Exchange and Message for getHeader / getProperty
TODO: More documentation and also use var style as its Java 11 onwards.

> camel-joor - Camel expression language using jOOR
> -------------------------------------------------
>
>                 Key: CAMEL-15697
>                 URL: https://issues.apache.org/jira/browse/CAMEL-15697
>             Project: Camel
>          Issue Type: New Feature
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Major
>             Fix For: 3.7.0
>
>
> jOOR allows to do runtime compilation to java with some limitations. But this can benefit a scripting language in the Camel DSL where we do limited and basic java code with the camel exchange/message etc.
> This can then be used as a prototype for doing a compiled simple language. However for that we would also like to discover the simple expressions during route source scanning, and make it part of the regular java compiler so its pre compiled. 
> But a first step is to use runtime compile via the javac compiler (requires to be in the JVM).
> And Java 8 is not supported.



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