Class AbstractCompositeHealthContributorConfiguration<C,I extends C,B>

java.lang.Object
org.springframework.boot.actuate.autoconfigure.health.AbstractCompositeHealthContributorConfiguration<C,I,B>
Type Parameters:
C - the contributor type
I - the health indicator type
B - the bean type
Direct Known Subclasses:
CompositeHealthContributorConfiguration, CompositeReactiveHealthContributorConfiguration

public abstract class AbstractCompositeHealthContributorConfiguration<C,I extends C,B> extends Object
Base class for health contributor configurations that can combine source beans into a composite.
Since:
2.2.0
Author:
Stephane Nicoll, Phillip Webb
  • Constructor Details

    • AbstractCompositeHealthContributorConfiguration

      @Deprecated(since="3.0.0", forRemoval=true) protected AbstractCompositeHealthContributorConfiguration()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Creates a AbstractCompositeHealthContributorConfiguration that will use reflection to create health indicator instances.
    • AbstractCompositeHealthContributorConfiguration

      protected AbstractCompositeHealthContributorConfiguration(Function<B,I> indicatorFactory)
      Creates a AbstractCompositeHealthContributorConfiguration that will use the given indicatorFactory to create health indicator instances.
      Parameters:
      indicatorFactory - the function to create health indicators
      Since:
      3.0.0
  • Method Details

    • createContributor

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

      protected abstract C createComposite(Map<String,B> beans)
    • createIndicator

      protected I createIndicator(B bean)