Class ConnectionFactoryHealthContributorAutoConfiguration
java.lang.Object
org.springframework.boot.health.autoconfigure.contributor.CompositeReactiveHealthContributorConfiguration<ConnectionFactoryHealthIndicator, io.r2dbc.spi.ConnectionFactory>
org.springframework.boot.r2dbc.autoconfigure.health.ConnectionFactoryHealthContributorAutoConfiguration
@AutoConfiguration(after=R2dbcAutoConfiguration.class)
@ConditionalOnClass({io.r2dbc.spi.ConnectionFactory.class,ConditionalOnEnabledHealthIndicator.class})
@ConditionalOnBean(io.r2dbc.spi.ConnectionFactory.class)
@ConditionalOnEnabledHealthIndicator("r2dbc")
public final class ConnectionFactoryHealthContributorAutoConfiguration
extends CompositeReactiveHealthContributorConfiguration<ConnectionFactoryHealthIndicator, io.r2dbc.spi.ConnectionFactory>
- Since:
- 4.0.0
- Author:
- Mark Paluch
-
Method Summary
Modifier and TypeMethodDescriptionprotected final ReactiveHealthContributorcreateContributor(Map<String, io.r2dbc.spi.ConnectionFactory> beans) protected final ReactiveHealthContributorcreateContributor(ConfigurableListableBeanFactory beanFactory, Class<io.r2dbc.spi.ConnectionFactory> beanType) Creates a composite contributor from the beans of the givenbeanTyperetrieved from the givenbeanFactory.protected ConnectionFactoryHealthIndicatorcreateIndicator(io.r2dbc.spi.ConnectionFactory bean) Methods inherited from class CompositeReactiveHealthContributorConfiguration
createComposite
-
Method Details
-
createContributor
protected final ReactiveHealthContributor createContributor(ConfigurableListableBeanFactory beanFactory, Class<io.r2dbc.spi.ConnectionFactory> 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
protected final ReactiveHealthContributor createContributor(Map<String, io.r2dbc.spi.ConnectionFactory> beans) -
createIndicator
-