Class CompositeHealthContributorConfiguration<I extends HealthIndicator,B>
java.lang.Object
org.springframework.boot.actuate.autoconfigure.health.AbstractCompositeHealthContributorConfiguration<HealthContributor,I,B>
org.springframework.boot.actuate.autoconfigure.health.CompositeHealthContributorConfiguration<I,B>
- Type Parameters:
I
- the health indicator typeB
- the bean type
- Direct Known Subclasses:
CouchbaseHealthContributorAutoConfiguration
,ElasticsearchRestHealthContributorAutoConfiguration
,HazelcastHealthContributorAutoConfiguration
,InfluxDbHealthContributorAutoConfiguration
,JmsHealthContributorAutoConfiguration
,LdapHealthContributorAutoConfiguration
,MailHealthContributorAutoConfiguration
,MongoHealthContributorAutoConfiguration
,RabbitHealthContributorAutoConfiguration
,RedisHealthContributorAutoConfiguration
public abstract class CompositeHealthContributorConfiguration<I extends HealthIndicator,B>
extends AbstractCompositeHealthContributorConfiguration<HealthContributor,I,B>
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
ConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.CompositeHealthContributorConfiguration
(Function<B, I> indicatorFactory) Creates aCompositeHealthContributorConfiguration
that will use the givenindicatorFactory
to createHealthIndicator
instances. -
Method Summary
Modifier and TypeMethodDescriptionprotected final HealthContributor
createComposite
(Map<String, B> beans) Methods inherited from class org.springframework.boot.actuate.autoconfigure.health.AbstractCompositeHealthContributorConfiguration
createContributor, createIndicator
-
Constructor Details
-
CompositeHealthContributorConfiguration
Deprecated, for removal: This API element is subject to removal in a future version.since 3.0.0 in favor ofCompositeHealthContributorConfiguration(Function)
Creates aCompositeHealthContributorConfiguration
that will use reflection to createHealthIndicator
instances. -
CompositeHealthContributorConfiguration
Creates aCompositeHealthContributorConfiguration
that will use the givenindicatorFactory
to createHealthIndicator
instances.- Parameters:
indicatorFactory
- the function to create health indicator instances- Since:
- 3.0.0
-
-
Method Details
-
createComposite
- Specified by:
createComposite
in classAbstractCompositeHealthContributorConfiguration<HealthContributor,
I extends HealthIndicator, B>
-
CompositeHealthContributorConfiguration(Function)