@Configuration @ConditionalOnBean(value=javax.sql.DataSource.class) 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 © 2015 Pivotal Software, Inc.. All rights reserved.