org.springframework.boot.actuate.condition.ConditionalOnEnabledEndpoint Java Examples
The following examples show how to use
org.springframework.boot.actuate.condition.ConditionalOnEnabledEndpoint.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: CompatibleSpringBoot1AutoConfiguration.java From sofa-ark with Apache License 2.0 | 4 votes |
@Bean @ConditionalOnEnabledEndpoint("bizState") public IntrospectBizEndpoint introspectBizEndpoint() { return new IntrospectBizEndpoint(); }
Example #2
Source File: PrometheusMetricsExportAutoConfiguration.java From foremast with Apache License 2.0 | 4 votes |
@Bean @ConditionalOnEnabledEndpoint("prometheus") public PrometheusScrapeMvcEndpoint prometheusMvcEndpoint(PrometheusScrapeEndpoint delegate) { return new PrometheusScrapeMvcEndpoint(delegate); }
Example #3
Source File: DubboEndpointAutoConfiguration.java From dubbo-spring-boot-project with Apache License 2.0 | 4 votes |
@Bean @ConditionalOnMissingBean @ConditionalOnEnabledEndpoint(value = "dubbo") public DubboEndpoint dubboEndpoint() { return new DubboEndpoint(); }
Example #4
Source File: PrometheusEndpointConfiguration.java From client_java with Apache License 2.0 | 4 votes |
@Bean @ConditionalOnBean(PrometheusEndpoint.class) @ConditionalOnEnabledEndpoint("prometheus") public PrometheusMvcEndpoint prometheusEndpointFix(PrometheusEndpoint prometheusEndpoint) { return new PrometheusMvcEndpoint(prometheusEndpoint); }