@Configuration @ConditionalOnClass(value=org.springframework.jdbc.core.JdbcTemplate.class) @ConditionalOnBean(value=javax.sql.DataSource.class) @ConditionalOnEnabledHealthIndicator(value="db") public static class HealthIndicatorAutoConfiguration.DataSourcesHealthIndicatorConfiguration extends HealthIndicatorAutoConfiguration.CompositeHealthIndicatorConfiguration<DataSourceHealthIndicator,DataSource> implements InitializingBean
Constructor and Description |
---|
DataSourcesHealthIndicatorConfiguration() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
protected DataSourceHealthIndicator |
createHealthIndicator(DataSource source) |
HealthIndicator |
dbHealthIndicator() |
createHealthIndicator
public DataSourcesHealthIndicatorConfiguration()
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface InitializingBean
Exception
@Bean @ConditionalOnMissingBean(name="dbHealthIndicator") public HealthIndicator dbHealthIndicator()
protected DataSourceHealthIndicator createHealthIndicator(DataSource source)
Copyright © 2016 Pivotal Software, Inc.. All rights reserved.