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

项目:spring-cloud-zookeeper    文件:ZookeeperAutoConfiguration.java   
@Bean
@ConditionalOnMissingBean
@ConditionalOnBean(CuratorFramework.class)
@ConditionalOnEnabledHealthIndicator("zookeeper")
public ZookeeperHealthIndicator zookeeperHealthIndicator(CuratorFramework curator) {
    return new ZookeeperHealthIndicator(curator);
}
项目:spring-cloud-commons    文件:RefreshEndpointAutoConfiguration.java   
@Bean
@ConditionalOnMissingBean
@ConditionalOnEnabledHealthIndicator("refresh")
RefreshScopeHealthIndicator refreshScopeHealthIndicator(ObjectProvider<RefreshScope> scope,
                                                        ConfigurationPropertiesRebinder rebinder) {
    return new RefreshScopeHealthIndicator(scope, rebinder);
}
项目:spring-cloud-netflix    文件:EurekaClientAutoConfiguration.java   
@Bean
@ConditionalOnMissingBean
@ConditionalOnEnabledHealthIndicator("eureka")
public EurekaHealthIndicator eurekaHealthIndicator(EurekaClient eurekaClient,
                                                   EurekaInstanceConfig instanceConfig, EurekaClientConfig clientConfig) {
    return new EurekaHealthIndicator(eurekaClient, instanceConfig, clientConfig);
}
项目:spring-cloud-netflix    文件:HystrixAutoConfiguration.java   
@Bean
@ConditionalOnEnabledHealthIndicator("hystrix")
public HystrixHealthIndicator hystrixHealthIndicator() {
    return new HystrixHealthIndicator();
}
项目:spring-cloud-consul    文件:ConsulAutoConfiguration.java   
@Bean
@ConditionalOnMissingBean
@ConditionalOnEnabledHealthIndicator("consul")
public ConsulHealthIndicator consulHealthIndicator(ConsulClient consulClient) {
    return new ConsulHealthIndicator(consulClient);
}