You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Henryk Konsek (JIRA)" <ji...@apache.org> on 2015/06/02 17:02:18 UTC
[jira] [Resolved] (CAMEL-8801) CamelContext auto-configuration
should be conditional
[ https://issues.apache.org/jira/browse/CAMEL-8801?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Henryk Konsek resolved CAMEL-8801.
----------------------------------
Resolution: Fixed
Fix Version/s: 2.16.0
Assignee: Henryk Konsek
Pull request has been merged.
> CamelContext auto-configuration should be conditional
> -----------------------------------------------------
>
> Key: CAMEL-8801
> URL: https://issues.apache.org/jira/browse/CAMEL-8801
> Project: Camel
> Issue Type: Improvement
> Components: camel-spring-boot
> Affects Versions: 2.15.2
> Reporter: Chris Pimlott
> Assignee: Henryk Konsek
> Fix For: 2.16.0
>
>
> The {{@Bean}} declaration of {{CamelContext}} within {{CamelAutoConfiguration}} should be made conditional to allow the user to create it manually if they so desire. This is useful when converting an application using an existing XML-based camelContext, for example.
> This would also make camel-spring-boot more consistent with [Spring Boot's policy of non-invasive auto-configuration|http://docs.spring.io/spring-boot/docs/current-SNAPSHOT/reference/htmlsingle/#using-boot-replacing-auto-configuration].
> The fix is just to add a conditional annotation on the camelContext method, e.g.:
> {code}
> @Bean
> @ConditionalOnMissingBean(CamelContext.class)
> CamelContext camelContext(ApplicationContext applicationContext,
> CamelConfigurationProperties configurationProperties) {
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)