Class MongoReactiveHealthContributorAutoConfiguration
java.lang.Object
org.springframework.boot.health.autoconfigure.contributor.CompositeReactiveHealthContributorConfiguration<MongoReactiveHealthIndicator, MongoClient>
org.springframework.boot.mongodb.autoconfigure.health.MongoReactiveHealthContributorAutoConfiguration
@AutoConfiguration(after=MongoReactiveAutoConfiguration.class)
@ConditionalOnClass({MongoClient.class,reactor.core.publisher.Flux.class,MongoReactiveHealthIndicator.class,ConditionalOnEnabledHealthIndicator.class})
@ConditionalOnBean(MongoClient.class)
@ConditionalOnEnabledHealthIndicator("mongodb")
public final class MongoReactiveHealthContributorAutoConfiguration
extends CompositeReactiveHealthContributorConfiguration<MongoReactiveHealthIndicator, MongoClient>
- Since:
- 4.0.0
- Author:
- Stephane Nicoll
-
Method Summary
Modifier and TypeMethodDescriptionprotected final ReactiveHealthContributorcreateContributor(Map<String, MongoClient> beans) protected final ReactiveHealthContributorcreateContributor(ConfigurableListableBeanFactory beanFactory, Class<MongoClient> beanType) Creates a composite contributor from the beans of the givenbeanTyperetrieved from the givenbeanFactory.protected MongoReactiveHealthIndicatorcreateIndicator(MongoClient bean) Methods inherited from class CompositeReactiveHealthContributorConfiguration
createComposite
-
Method Details
-
createContributor
protected final ReactiveHealthContributor createContributor(ConfigurableListableBeanFactory beanFactory, Class<MongoClient> 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
-