davsclaus commented on code in PR #1097: URL: https://github.com/apache/camel-spring-boot/pull/1097#discussion_r1508650701
########## core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/CamelAutoConfiguration.java: ########## @@ -95,19 +99,23 @@ public class CamelAutoConfiguration { @ConditionalOnMissingBean(CamelContext.class) CamelContext camelContext(ApplicationContext applicationContext, CamelConfigurationProperties config, - CamelBeanPostProcessor beanPostProcessor) throws Exception { + CamelBeanPostProcessor beanPostProcessor, + List<CamelContextCustomizer> contextCustomizers) throws Exception { + CamelContext camelContext = new SpringBootCamelContext(applicationContext, config.isWarnOnEarlyShutdown()); // bean post processor is created before CamelContext beanPostProcessor.setCamelContext(camelContext); camelContext.getCamelContextExtension().addContextPlugin(CamelBeanPostProcessor.class, beanPostProcessor); - return doConfigureCamelContext(applicationContext, camelContext, config); + + return doConfigureCamelContext(applicationContext, camelContext, contextCustomizers, config); } /** * Not to be used by Camel end users */ public static CamelContext doConfigureCamelContext(ApplicationContext applicationContext, CamelContext camelContext, + List<CamelContextCustomizer> contextCustomizers, Review Comment: This can then be removed if we make camel-core do the customizer itself, as then it will just lookup them from the registry like all the other beans it does today (same same) -- 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-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org