davsclaus commented on code in PR #8171:
URL: https://github.com/apache/camel/pull/8171#discussion_r947714526


##########
core/camel-core-model/src/main/java/org/apache/camel/builder/RouteBuilder.java:
##########
@@ -665,7 +666,10 @@ protected void checkInitialized() throws Exception {
                         
camelContext.adapt(ExtendedCamelContext.class).getErrorHandlerFactory());
             }
 
-            for (RouteBuilderLifecycleStrategy interceptor : 
lifecycleInterceptors) {
+            Collection<RouteBuilderLifecycleStrategy> strategies = new 
ArrayList<>(lifecycleInterceptors);
+            
strategies.addAll(camelContext.getRegistry().findByType(RouteBuilderLifecycleStrategy.class));
+

Review Comment:
   I wonder if we should sort these strategies, so a strategy can implement 
Ordered from Camel to influence if its run first or last etc.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to