ppalaga commented on a change in pull request #358: Fix #136 @ConfigProperty 
and @Inject do not work in RouteBuilders
URL: https://github.com/apache/camel-quarkus/pull/358#discussion_r344888604
 
 

 ##########
 File path: 
extensions/core/deployment/src/main/java/org/apache/camel/quarkus/core/deployment/NativeImageProcessor.java
 ##########
 @@ -176,17 +177,15 @@ protected void addReflectiveMethod(MethodInfo mi) {
     public static class Main {
         @BuildStep(onlyIf = Flags.MainEnabled.class)
         void process(
-                CombinedIndexBuildItem combinedIndex,
+                List<CamelRoutesBuilderClassBuildItem> camelRoutesBuilders,
                 BuildProducer<ReflectiveClassBuildItem> reflectiveClass) {
 
-            IndexView view = combinedIndex.getIndex();
-
             //
             // Register routes as reflection aware as camel-main main use 
reflection
             // to bind beans to the registry
             //
-            CamelSupport.getRouteBuilderClasses(view).forEach(name -> {
-                reflectiveClass.produce(new ReflectiveClassBuildItem(true, 
false, name));
+            camelRoutesBuilders.stream().forEach(dotName -> {
 
 Review comment:
   +1

----------------------------------------------------------------
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

Reply via email to