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 typeI
- the health indicator typeB
- 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 Summary
ModifierConstructorDescriptionprotected
Deprecated, for removal: This API element is subject to removal in a future version.protected
AbstractCompositeHealthContributorConfiguration
(Function<B, I> indicatorFactory) Creates aAbstractCompositeHealthContributorConfiguration
that will use the givenindicatorFactory
to create health indicator instances. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract C
createComposite
(Map<String, B> beans) protected final C
createContributor
(Map<String, B> beans) protected I
createIndicator
(B bean)
-
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.since 3.0.0 in favor ofAbstractCompositeHealthContributorConfiguration(Function)
Creates aAbstractCompositeHealthContributorConfiguration
that will use reflection to create health indicator instances. -
AbstractCompositeHealthContributorConfiguration
Creates aAbstractCompositeHealthContributorConfiguration
that will use the givenindicatorFactory
to create health indicator instances.- Parameters:
indicatorFactory
- the function to create health indicators- Since:
- 3.0.0
-
-
Method Details
-
createContributor
-
createComposite
-
createIndicator
-
AbstractCompositeHealthContributorConfiguration(Function)