Class CompositeReactiveHealthContributorConfiguration<I extends ReactiveHealthIndicator, B>

java.lang.Object
org.springframework.boot.health.autoconfigure.contributor.CompositeReactiveHealthContributorConfiguration<I,B>
Type Parameters:
I - the health indicator type
B - the bean type

public abstract class CompositeReactiveHealthContributorConfiguration<I extends ReactiveHealthIndicator, B> extends Object
Base class for health contributor configurations that can combine source beans into a composite.
Since:
4.0.0
  • Constructor Details

    • CompositeReactiveHealthContributorConfiguration

      public CompositeReactiveHealthContributorConfiguration(Function<B,I> indicatorFactory)
      Creates a CompositeReactiveHealthContributorConfiguration that will use the given indicatorFactory to create ReactiveHealthIndicator instances.
      Parameters:
      indicatorFactory - the function to create health indicator instances
  • Method Details

    • createComposite

      protected final ReactiveHealthContributor createComposite(Map<String,B> beans)
    • createContributor

      protected final ReactiveHealthContributor createContributor(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory, Class<B> 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
      Since:
      3.4.3
    • createContributor

      protected final ReactiveHealthContributor createContributor(Map<String,B> beans)
    • createIndicator

      protected I createIndicator(B bean)