Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CAMEL-18977: camel-joor - Make the code more flexible for native mode #9208

Merged
merged 1 commit into from Jan 26, 2023

Conversation

essobedo
Copy link
Contributor

Fix for https://issues.apache.org/jira/browse/CAMEL-18977

Motivation

With the current code base, it is hard to change the behavior of the jOOR language in order to move most of the logic at build time and/or at static initialization time, without having to use ugly hacks like reflection. The goal of this task is to make the code more flexible to avoid using hacks.

Modifications:

  • Add a constructor to the class JoorLanguage to be able to inject specific jOOR compiler and jOOR script compiler
  • Add getters for the jOOR compiler and jOOR script compiler
  • Make the method evalCode public to give access to the generated code.

@github-actions
Copy link
Contributor

🌟 Thank you for your contribution to the Apache Camel project! 🌟

⚠️ Please note that the changes on this PR may be tested automatically.

If necessary Apache Camel Committers may access logs and test results in the job summaries!

@essobedo
Copy link
Contributor Author

Waiting apache/camel-quarkus#4440 to be approved and merged first

@github-actions
Copy link
Contributor

Components tested:

Total Tested Failed ❌ Passed ✅
1 1 0 1

@essobedo essobedo marked this pull request as ready for review January 26, 2023 18:38
@essobedo essobedo merged commit 73f61a4 into main Jan 26, 2023
@essobedo essobedo deleted the CAMEL-18977/make-native-mode-compatible branch January 26, 2023 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants