类 AbstractCompositeHealthContributorConfiguration<C,I extends C,B>

java.lang.Object
org.springframework.boot.actuate.autoconfigure.health.AbstractCompositeHealthContributorConfiguration<C,I,B>
类型参数:
C - the contributor type
I - the health indicator type
B - the bean type
直接已知子类:
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.
从以下版本开始:
2.2.0
作者:
Stephane Nicoll, Phillip Webb
  • 构造器详细资料

    • AbstractCompositeHealthContributorConfiguration

      protected AbstractCompositeHealthContributorConfiguration(Function<B,I> indicatorFactory)
      Creates a AbstractCompositeHealthContributorConfiguration that will use the given indicatorFactory to create health indicator instances.
      参数:
      indicatorFactory - the function to create health indicators
      从以下版本开始:
      3.0.0
  • 方法详细资料

    • 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.
      参数:
      beanFactory - the bean factory from which the beans are retrieved
      beanType - the type of the beans that are retrieved
      返回:
      the contributor
      从以下版本开始:
      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)