Class RabbitHealthContributorAutoConfiguration
java.lang.Object
org.springframework.boot.health.autoconfigure.contributor.CompositeHealthContributorConfiguration<RabbitHealthIndicator, RabbitTemplate>
org.springframework.boot.rabbitmq.autoconfigure.health.RabbitHealthContributorAutoConfiguration
@AutoConfiguration(after=RabbitAutoConfiguration.class)
@ConditionalOnClass({RabbitHealthIndicator.class,RabbitTemplate.class,ConditionalOnEnabledHealthIndicator.class})
@ConditionalOnBean(RabbitTemplate.class)
@ConditionalOnEnabledHealthIndicator("rabbit")
public final class RabbitHealthContributorAutoConfiguration
extends CompositeHealthContributorConfiguration<RabbitHealthIndicator, RabbitTemplate>
- Since:
- 4.2.0
- Author:
- Christian Dupuis
-
Method Summary
Modifier and TypeMethodDescriptionprotected final HealthContributorcreateContributor(Map<String, RabbitTemplate> beans) protected final HealthContributorcreateContributor(ConfigurableListableBeanFactory beanFactory, Class<RabbitTemplate> beanType) Creates a composite contributor from the beans of the givenbeanTyperetrieved from the givenbeanFactory.protected RabbitHealthIndicatorMethods inherited from class CompositeHealthContributorConfiguration
createComposite
-
Method Details
-
createContributor
protected final HealthContributor createContributor(ConfigurableListableBeanFactory beanFactory, Class<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
-
createIndicator
-