Java 类org.springframework.boot.actuate.autoconfigure.endpoint.condition.ConditionalOnEnabledEndpoint 实例源码

项目:spring-cloud-commons    文件:RefreshEndpointAutoConfiguration.java   
@Bean
@ConditionalOnBean(ContextRefresher.class)
@ConditionalOnEnabledEndpoint
@ConditionalOnMissingBean
public RefreshEndpoint refreshEndpoint(ContextRefresher contextRefresher) {
    return new RefreshEndpoint(contextRefresher);
}
项目:spring-cloud-commons    文件:RefreshEndpointAutoConfiguration.java   
@Bean
@ConditionalOnEnabledEndpoint
@ConditionalOnMissingBean
public RestartEndpoint restartEndpoint() {
    RestartEndpoint endpoint = new RestartEndpoint();
    if (this.exporter != null) {
        endpoint.setIntegrationMBeanExporter(this.exporter);
    }
    return endpoint;
}
项目:spring-cloud-commons    文件:RefreshEndpointAutoConfiguration.java   
@Bean
@ConditionalOnBean(RestartEndpoint.class)
@ConditionalOnMissingBean
@ConditionalOnEnabledEndpoint
public RestartEndpoint.PauseEndpoint pauseEndpoint(RestartEndpoint restartEndpoint) {
    return restartEndpoint.getPauseEndpoint();
}
项目:spring-cloud-commons    文件:RefreshEndpointAutoConfiguration.java   
@Bean
@ConditionalOnBean(RestartEndpoint.class)
@ConditionalOnMissingBean
@ConditionalOnEnabledEndpoint
public RestartEndpoint.ResumeEndpoint resumeEndpoint(
        RestartEndpoint restartEndpoint) {
    return restartEndpoint.getResumeEndpoint();
}
项目:spring-cloud-commons    文件:LifecycleMvcEndpointAutoConfiguration.java   
@Bean
@ConditionalOnBean(EnvironmentEndpoint.class)
@ConditionalOnEnabledEndpoint
public EnvironmentWebEndpointExtension environmentWebEndpointExtension(
        EnvironmentManager environment) {
    return new EnvironmentWebEndpointExtension(environment);
}
项目:spring-cloud-commons    文件:ServiceRegistryAutoConfiguration.java   
@Bean
@ConditionalOnEnabledEndpoint
public ServiceRegistryEndpoint serviceRegistryEndpoint(ServiceRegistry serviceRegistry) {
    ServiceRegistryEndpoint endpoint = new ServiceRegistryEndpoint(serviceRegistry);
    endpoint.setRegistration(registration);
    return endpoint;
}
项目:spring-cloud-netflix    文件:HystrixAutoConfiguration.java   
@Bean
@ConditionalOnEnabledEndpoint
public HystrixWebfluxEndpoint hystrixWebfluxController() {
    Observable<String> serializedDashboardData = HystrixDashboardStream.getInstance().observe()
            .concatMap(dashboardData -> Observable.from(SerialHystrixDashboardData.toMultipleJsonStrings(dashboardData)));
    Publisher<String> publisher = RxReactiveStreams.toPublisher(serializedDashboardData);
    return new HystrixWebfluxEndpoint(publisher);
}
项目:spring-cloud-bus    文件:BusAutoConfiguration.java   
@Bean
@ConditionalOnEnabledEndpoint
public EnvironmentBusEndpoint environmentBusEndpoint(
        ApplicationContext context, BusProperties bus) {
    return new EnvironmentBusEndpoint(context, bus.getId());
}
项目:spring-cloud-commons    文件:RefreshEndpointAutoConfiguration.java   
@Bean
@ConditionalOnEnabledEndpoint
@ConditionalOnMissingBean
public RestartEndpoint restartEndpointWithoutIntegration() {
    return new RestartEndpoint();
}
项目:spring-cloud-commons    文件:CommonsClientAutoConfiguration.java   
@Bean
@ConditionalOnEnabledEndpoint
public FeaturesEndpoint featuresEndpoint() {
    return new FeaturesEndpoint(this.hasFeatures);
}
项目:spring-cloud-netflix    文件:ZuulProxyAutoConfiguration.java   
@Bean
@ConditionalOnEnabledEndpoint
public RoutesEndpoint routesEndpoint(RouteLocator routeLocator) {
    return new RoutesEndpoint(routeLocator);
}
项目:spring-cloud-netflix    文件:ZuulProxyAutoConfiguration.java   
@ConditionalOnEnabledEndpoint
@Bean
public FiltersEndpoint filtersEndpoint() {
    FilterRegistry filterRegistry = FilterRegistry.instance();
    return new FiltersEndpoint(filterRegistry);
}
项目:spring-cloud-netflix    文件:ArchaiusAutoConfiguration.java   
@Bean
@ConditionalOnEnabledEndpoint
protected ArchaiusEndpoint archaiusEndpoint() {
    return new ArchaiusEndpoint();
}
项目:spring-cloud-netflix    文件:HystrixAutoConfiguration.java   
@Bean
@ConditionalOnEnabledEndpoint
public HystrixStreamEndpoint hystrixStreamEndpoint(HystrixProperties properties) {
    return new HystrixStreamEndpoint(properties.getConfig());
}
项目:spring-cloud-consul    文件:ConsulAutoConfiguration.java   
@Bean
@ConditionalOnMissingBean
@ConditionalOnEnabledEndpoint
public ConsulEndpoint consulEndpoint(ConsulClient consulClient) {
    return new ConsulEndpoint(consulClient);
}