Class MongoReactiveHealthContributorAutoConfiguration

java.lang.Object
org.springframework.boot.health.autoconfigure.contributor.CompositeReactiveHealthContributorConfiguration<MongoReactiveHealthIndicator, com.mongodb.reactivestreams.client.MongoClient>
org.springframework.boot.mongodb.autoconfigure.health.MongoReactiveHealthContributorAutoConfiguration

@AutoConfiguration(after=MongoReactiveAutoConfiguration.class) @ConditionalOnClass({com.mongodb.reactivestreams.client.MongoClient.class,reactor.core.publisher.Flux.class,MongoReactiveHealthIndicator.class,ConditionalOnEnabledHealthIndicator.class}) @ConditionalOnBean(com.mongodb.reactivestreams.client.MongoClient.class) @ConditionalOnEnabledHealthIndicator("mongodb") public final class MongoReactiveHealthContributorAutoConfiguration extends CompositeReactiveHealthContributorConfiguration<MongoReactiveHealthIndicator, com.mongodb.reactivestreams.client.MongoClient>
Since:
4.0.0
Author:
Stephane Nicoll
  • Method Details

    • createContributor

      protected final ReactiveHealthContributor createContributor(ConfigurableListableBeanFactory beanFactory, Class<com.mongodb.reactivestreams.client.MongoClient> beanType)
      Creates a composite contributor from the beans of the given beanType retrieved from the given beanFactory.
      Parameters:
      beanFactory - the bean factory from which the beans are retrieved
      beanType - the type of the beans that are retrieved
      Returns:
      the contributor
    • createContributor

      protected final ReactiveHealthContributor createContributor(Map<String, com.mongodb.reactivestreams.client.MongoClient> beans)
    • createIndicator

      protected MongoReactiveHealthIndicator createIndicator(com.mongodb.reactivestreams.client.MongoClient bean)