You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by lb...@apache.org on 2017/12/18 07:16:55 UTC
[camel] branch master updated: Fix
HealthCheckRoutesAutoConfiguration autowiring
This is an automated email from the ASF dual-hosted git repository.
lburgazzoli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push:
new f87ef78 Fix HealthCheckRoutesAutoConfiguration autowiring
f87ef78 is described below
commit f87ef786b180267143aff06b48a4eb4f906cf11a
Author: lburgazzoli <lb...@gmail.com>
AuthorDate: Mon Dec 18 08:16:43 2017 +0100
Fix HealthCheckRoutesAutoConfiguration autowiring
---
.../camel/spring/boot/health/HealthCheckRoutesAutoConfiguration.java | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/components/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/health/HealthCheckRoutesAutoConfiguration.java b/components/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/health/HealthCheckRoutesAutoConfiguration.java
index 8b83fc5..6f3d3b9 100644
--- a/components/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/health/HealthCheckRoutesAutoConfiguration.java
+++ b/components/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/health/HealthCheckRoutesAutoConfiguration.java
@@ -24,7 +24,6 @@ import org.apache.camel.impl.health.RoutesHealthCheckRepository;
import org.apache.camel.spring.boot.CamelAutoConfiguration;
import org.apache.camel.spring.boot.util.GroupCondition;
import org.apache.camel.util.ObjectHelper;
-import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.config.ConfigurableBeanFactory;
import org.springframework.boot.autoconfigure.AutoConfigureBefore;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
@@ -39,13 +38,11 @@ import org.springframework.context.annotation.Scope;
@Conditional(HealthCheckRoutesAutoConfiguration.Condition.class)
@EnableConfigurationProperties(HealthCheckRoutesConfiguration.class)
public class HealthCheckRoutesAutoConfiguration {
- @Autowired
- private HealthCheckRoutesConfiguration configuration;
@Bean
@Scope(ConfigurableBeanFactory.SCOPE_SINGLETON)
@ConditionalOnMissingBean(RoutesHealthCheckRepository.class)
- public HealthCheckRepository routesHealthCheckRepository() {
+ public HealthCheckRepository routesHealthCheckRepository(HealthCheckRoutesConfiguration configuration) {
final RoutesHealthCheckRepository repository = new RoutesHealthCheckRepository();
final HealthCheckRoutesConfiguration.ThresholdsConfiguration thresholds = configuration.getThresholds();
--
To stop receiving notification emails like this one, please contact
['"commits@camel.apache.org" <co...@camel.apache.org>'].