Details
-
New Feature
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
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
- is related to
-
CAMEL-15720 camel-core - Optimize calling bean with noarg method
- Resolved
- relates to
-
CAMEL-15697 camel-joor - Camel expression language using jOOR
- Resolved
- links to