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

      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(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 C createContributor(Map<String,B> beans)
    • createComposite

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

      protected I createIndicator(B bean)