类 AbstractCompositeHealthContributorConfiguration<C,I extends C,B>
java.lang.Object
org.springframework.boot.actuate.autoconfigure.health.AbstractCompositeHealthContributorConfiguration<C,I,B>
- 类型参数:
C- the contributor typeI- the health indicator typeB- the bean type
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
-
构造器概要
构造器限定符构造器说明protectedAbstractCompositeHealthContributorConfiguration(Function<B, I> indicatorFactory) Creates aAbstractCompositeHealthContributorConfigurationthat will use the givenindicatorFactoryto create health indicator instances. -
方法概要
修饰符和类型方法说明protected abstract CcreateComposite(Map<String, B> beans) protected final CcreateContributor(Map<String, B> beans) protected final CcreateContributor(ConfigurableListableBeanFactory beanFactory, Class<B> beanType) Creates a composite contributor from the beans of the givenbeanTyperetrieved from the givenbeanFactory.protected IcreateIndicator(B bean)
-
构造器详细资料
-
AbstractCompositeHealthContributorConfiguration
Creates aAbstractCompositeHealthContributorConfigurationthat will use the givenindicatorFactoryto create health indicator instances.- 参数:
indicatorFactory- the function to create health indicators- 从以下版本开始:
- 3.0.0
-
-
方法详细资料
-
createContributor
Creates a composite contributor from the beans of the givenbeanTyperetrieved from the givenbeanFactory.- 参数:
beanFactory- the bean factory from which the beans are retrievedbeanType- the type of the beans that are retrieved- 返回:
- the contributor
- 从以下版本开始:
- 3.4.3
-
createContributor
-
createComposite
-
createIndicator
-