essobedo opened a new pull request, #4359: URL: https://github.com/apache/camel-quarkus/pull/4359
fixes #4358 ## Motivation [To support routes written in Java language in Camel-K](https://github.com/apache/camel-k/issues/3023), we have to make the extension `java-joor-dsl` compatible with the native mode. ## Modifications The main idea is to compile the java resources using jOOR at build time and ignore runtime compilation requests. * Move the extension to native using the `promote` mojo * Declare class resources as generated without any modifications * Compile java resources using jOOR and declare the result as generated * Register the default constructor of the generated classes for reflection * Instantiate and register the `RoutesBuilder` at runtime * Substitute the body of the methods `doLoadRoutesBuilders` to do nothing at runtime Note: I had to use an ugly workaround to provide the classpath, I intend to change the code in Camel to clean it up later. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org