You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2022/08/17 10:24:39 UTC

[GitHub] [camel] lburgazzoli commented on a diff in pull request #8171: feat: add a global route builder interceptors

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


##########
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:
   done



-- 
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-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org