gnodet commented on a change in pull request #1088: Lightweight context without init / start phases URL: https://github.com/apache/camel-quarkus/pull/1088#discussion_r408683788
########## File path: extensions-core/reactive-executor/deployment/src/main/java/org/apache/camel/quarkus/reactive/executor/deployment/BuildProcessor.java ########## @@ -25,9 +25,16 @@ import org.apache.camel.quarkus.reactive.executor.ReactiveExecutorRecorder; public class BuildProcessor { + @Record(value = ExecutionTime.STATIC_INIT, optional = true) + @BuildStep(onlyIf = Flags.MainEnabled.class) + CamelReactiveExecutorBuildItem reactiveExecutor(ReactiveExecutorRecorder recorder) { + return new CamelReactiveExecutorBuildItem(recorder.createReactiveExecutor()); + } + @Record(value = ExecutionTime.RUNTIME_INIT, optional = true) @BuildStep(onlyIf = Flags.MainEnabled.class) - CamelReactiveExecutorBuildItem reactiveExecutor(ReactiveExecutorRecorder recorder, VertxBuildItem vertx) { - return new CamelReactiveExecutorBuildItem(recorder.createReactiveExecutor(vertx.getVertx())); + void initReactiveExecutor(ReactiveExecutorRecorder recorder, CamelReactiveExecutorBuildItem executor, + VertxBuildItem vertx) { Review comment: Right, I'll add a `BuildItem` to ensure the start of the context is done after. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services