ppalaga commented on a change in pull request #1088: Lightweight context
without init / start phases
URL: https://github.com/apache/camel-quarkus/pull/1088#discussion_r409342039
##########
File path:
extensions-core/core/deployment/src/main/java/org/apache/camel/quarkus/core/deployment/BuildProcessor.java
##########
@@ -525,12 +533,20 @@ UnremovableBeanBuildItem unremovableRoutesBuilders() {
}
@Overridable
- @Record(value = ExecutionTime.RUNTIME_INIT, optional = true)
+ @Record(value = ExecutionTime.STATIC_INIT, optional = true)
@BuildStep(onlyIf = Flags.MainEnabled.class)
CamelReactiveExecutorBuildItem reactiveExecutor(CamelMainRecorder
recorder) {
return new
CamelReactiveExecutorBuildItem(recorder.createReactiveExecutor());
}
+ @Overridable
+ @Record(value = ExecutionTime.RUNTIME_INIT, optional = true)
+ @BuildStep(onlyIf = Flags.MainEnabled.class)
+ CamelInitializedReactiveExecutorBuildItem initReactiveExecutor(
+ CamelMainRecorder recorder, CamelReactiveExecutorBuildItem
executor) {
Review comment:
Another comment I'd appreciate here is an explanation why is this
optional/overridable, something like
```
This produces the default CamelInitializedReactiveExecutorBuildItem simply
by repackaging the excutor produced by reactiveExecutor(). Both this method and
reactiveExecutor() are overridable to allow plugging in a Vertx based executor
by adding the camel-quarkus-reactive-executor extension to the class path.
```
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services