Class RabbitHealthContributorAutoConfiguration
java.lang.Object
org.springframework.boot.health.autoconfigure.contributor.CompositeHealthContributorConfiguration<RabbitHealthIndicator, org.springframework.amqp.rabbit.core.RabbitTemplate>
org.springframework.boot.amqp.autoconfigure.health.RabbitHealthContributorAutoConfiguration
@AutoConfiguration(after=RabbitAutoConfiguration.class)
@ConditionalOnClass({RabbitHealthIndicator.class,org.springframework.amqp.rabbit.core.RabbitTemplate.class,ConditionalOnEnabledHealthIndicator.class})
@ConditionalOnBean(org.springframework.amqp.rabbit.core.RabbitTemplate.class)
@ConditionalOnEnabledHealthIndicator("rabbit")
public final class RabbitHealthContributorAutoConfiguration
extends CompositeHealthContributorConfiguration<RabbitHealthIndicator, org.springframework.amqp.rabbit.core.RabbitTemplate>
- Since:
- 4.0.0
- Author:
- Christian Dupuis
-
Method Summary
Modifier and TypeMethodDescriptionprotected final HealthContributorcreateContributor(Map<String, org.springframework.amqp.rabbit.core.RabbitTemplate> beans) protected final HealthContributorcreateContributor(ConfigurableListableBeanFactory beanFactory, Class<org.springframework.amqp.rabbit.core.RabbitTemplate> beanType) Creates a composite contributor from the beans of the givenbeanTyperetrieved from the givenbeanFactory.protected RabbitHealthIndicatorcreateIndicator(org.springframework.amqp.rabbit.core.RabbitTemplate bean) Methods inherited from class CompositeHealthContributorConfiguration
createComposite
-
Method Details
-
createContributor
protected final HealthContributor createContributor(ConfigurableListableBeanFactory beanFactory, Class<org.springframework.amqp.rabbit.core.RabbitTemplate> beanType) Creates a composite contributor from the beans of the givenbeanTyperetrieved from the givenbeanFactory.- Parameters:
beanFactory- the bean factory from which the beans are retrievedbeanType- the type of the beans that are retrieved- Returns:
- the contributor
-
createContributor
protected final HealthContributor createContributor(Map<String, org.springframework.amqp.rabbit.core.RabbitTemplate> beans) -
createIndicator
protected RabbitHealthIndicator createIndicator(org.springframework.amqp.rabbit.core.RabbitTemplate bean)
-