Java 类org.springframework.boot.actuate.autoconfigure.ConditionalOnEnabledHealthIndicator 实例源码

项目:hiatus-spring-boot    文件:HiatusAutoConfiguration.java   
@Bean
@ConditionalOnMissingBean
@ConditionalOnEnabledHealthIndicator("hiatus")
public HiatusHealthIndicator hiatusHealthIndicator(HiatusEndpoint hiatusEndpoint) {
    return new HiatusHealthIndicator(hiatusEndpoint);
}
项目:spring-cloud-etcd    文件:EtcdAutoConfiguration.java   
@Bean
@ConditionalOnMissingBean
@ConditionalOnEnabledHealthIndicator("etcd")
public EtcdHealthIndicator etcdHealthIndicator(Client etcdClient) {
  return new EtcdHealthIndicator(etcdClient);
}