Class MongoHealthContributorAutoConfiguration
java.lang.Object
org.springframework.boot.health.autoconfigure.contributor.CompositeHealthContributorConfiguration<MongoHealthIndicator, com.mongodb.client.MongoClient>
org.springframework.boot.mongodb.autoconfigure.health.MongoHealthContributorAutoConfiguration
@AutoConfiguration(after={MongoReactiveHealthContributorAutoConfiguration.class,MongoAutoConfiguration.class})
@ConditionalOnClass({com.mongodb.client.MongoClient.class,MongoHealthIndicator.class,ConditionalOnEnabledHealthIndicator.class})
@ConditionalOnBean(com.mongodb.client.MongoClient.class)
@ConditionalOnEnabledHealthIndicator("mongodb")
public final class MongoHealthContributorAutoConfiguration
extends CompositeHealthContributorConfiguration<MongoHealthIndicator, com.mongodb.client.MongoClient>
- Since:
- 4.0.0
- Author:
- Stephane Nicoll
-
Method Summary
Modifier and TypeMethodDescriptionprotected final HealthContributorcreateContributor(Map<String, com.mongodb.client.MongoClient> beans) protected final HealthContributorcreateContributor(ConfigurableListableBeanFactory beanFactory, Class<com.mongodb.client.MongoClient> beanType) Creates a composite contributor from the beans of the givenbeanTyperetrieved from the givenbeanFactory.protected MongoHealthIndicatorcreateIndicator(com.mongodb.client.MongoClient bean) Methods inherited from class CompositeHealthContributorConfiguration
createComposite
-
Method Details
-
createContributor
protected final HealthContributor createContributor(ConfigurableListableBeanFactory beanFactory, Class<com.mongodb.client.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
protected final HealthContributor createContributor(Map<String, com.mongodb.client.MongoClient> beans) -
createIndicator
-