Class CompositeReactiveHealthContributorConfiguration<I extends ReactiveHealthIndicator, B>
java.lang.Object
org.springframework.boot.health.autoconfigure.contributor.CompositeReactiveHealthContributorConfiguration<I,B>
- Type Parameters:
I- the health indicator typeB- the bean type
public abstract class CompositeReactiveHealthContributorConfiguration<I extends ReactiveHealthIndicator, B>
extends Object
Base class for health contributor configurations that can combine source beans into a
composite.
- Since:
- 4.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionCompositeReactiveHealthContributorConfiguration(Function<B, I> indicatorFactory) Creates aCompositeReactiveHealthContributorConfigurationthat will use the givenindicatorFactoryto createReactiveHealthIndicatorinstances. -
Method Summary
Modifier and TypeMethodDescriptionprotected final ReactiveHealthContributorcreateComposite(Map<String, B> beans) protected final ReactiveHealthContributorcreateContributor(Map<String, B> beans) protected final ReactiveHealthContributorcreateContributor(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory, Class<B> beanType) Creates a composite contributor from the beans of the givenbeanTyperetrieved from the givenbeanFactory.protected IcreateIndicator(B bean)
-
Constructor Details
-
CompositeReactiveHealthContributorConfiguration
Creates aCompositeReactiveHealthContributorConfigurationthat will use the givenindicatorFactoryto createReactiveHealthIndicatorinstances.- Parameters:
indicatorFactory- the function to create health indicator instances
-
-
Method Details
-
createComposite
-
createContributor
protected final ReactiveHealthContributor createContributor(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory, Class<B> beanType) Creates a composite contributor from the beans of the givenbeanTyperetrieved from the givenbeanFactory.- Parameters:
beanFactory- the bean factory from which the beans are retrievedbeanType- the type of the beans that are retrieved- Returns:
- the contributor
-
createContributor
-
createIndicator
-