类 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
-
构造器概要
构造器限定符构造器说明protected
AbstractCompositeHealthContributorConfiguration
(Function<B, I> indicatorFactory) Creates aAbstractCompositeHealthContributorConfiguration
that will use the givenindicatorFactory
to create health indicator instances. -
方法概要
修饰符和类型方法说明protected abstract C
createComposite
(Map<String, B> beans) protected final C
createContributor
(Map<String, B> beans) protected final C
createContributor
(ConfigurableListableBeanFactory beanFactory, Class<B> beanType) Creates a composite contributor from the beans of the givenbeanType
retrieved from the givenbeanFactory
.protected I
createIndicator
(B bean)
-
构造器详细资料
-
AbstractCompositeHealthContributorConfiguration
Creates aAbstractCompositeHealthContributorConfiguration
that will use the givenindicatorFactory
to create health indicator instances.- 参数:
indicatorFactory
- the function to create health indicators- 从以下版本开始:
- 3.0.0
-
-
方法详细资料
-
createContributor
Creates a composite contributor from the beans of the givenbeanType
retrieved 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
-