Rename rabbitHealthIndicator bean

Rename the rabbitHealthIndicator bean which was accidentally named
redisHealthIndicator.
pull/837/merge
Phillip Webb 11 years ago
parent 0402ed38f7
commit bd38893f55

@ -149,7 +149,7 @@ public class HealthIndicatorAutoConfiguration {
@Bean @Bean
@ConditionalOnMissingBean(name = "rabbitHealthIndicator") @ConditionalOnMissingBean(name = "rabbitHealthIndicator")
public HealthIndicator<?> redisHealthIndicator() { public HealthIndicator<?> rabbitHealthIndicator() {
if (this.rabbitTemplates.size() == 1) { if (this.rabbitTemplates.size() == 1) {
return new RabbitHealthIndicator(this.rabbitTemplates.values().iterator() return new RabbitHealthIndicator(this.rabbitTemplates.values().iterator()
.next()); .next());

@ -28,7 +28,7 @@ import com.rabbitmq.client.Channel;
/** /**
* Simple implementation of a {@link HealthIndicator} returning status information for the * Simple implementation of a {@link HealthIndicator} returning status information for the
* RabbitMQ messaging system. * RabbitMQ messaging system.
* *
* @author Christian Dupuis * @author Christian Dupuis
* @since 1.1.0 * @since 1.1.0
*/ */

@ -1,5 +1,5 @@
/* /*
* Copyright 2014 the original author or authors. * Copyright 2012-2014 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -30,7 +30,7 @@ import static org.junit.Assert.assertNotNull;
/** /**
* Tests for {@link RabbitHealthIndicator}. * Tests for {@link RabbitHealthIndicator}.
* *
* @author Christian Dupuis * @author Christian Dupuis
*/ */
public class RabbitHealthIndicatorTests { public class RabbitHealthIndicatorTests {

Loading…
Cancel
Save