@ -65,12 +65,13 @@ public class HealthWebEndpointManagementContextConfiguration {
@ConditionalOnWebApplication ( type = Type . REACTIVE )
@ConditionalOnWebApplication ( type = Type . REACTIVE )
static class ReactiveWebHealthConfiguration {
static class ReactiveWebHealthConfiguration {
@Bean
private final ReactiveHealthIndicator reactiveHealthIndicator ;
public ReactiveHealthIndicator reactiveHealthIndicator (
ReactiveWebHealthConfiguration (
ObjectProvider < HealthAggregator > healthAggregator ,
ObjectProvider < HealthAggregator > healthAggregator ,
ObjectProvider < Map < String , ReactiveHealthIndicator > > reactiveHealthIndicators ,
ObjectProvider < Map < String , ReactiveHealthIndicator > > reactiveHealthIndicators ,
ObjectProvider < Map < String , HealthIndicator > > healthIndicators ) {
ObjectProvider < Map < String , HealthIndicator > > healthIndicators ) {
return new CompositeReactiveHealthIndicatorFactory ( )
this. reactiveHealthIndicator = new CompositeReactiveHealthIndicatorFactory ( )
. createReactiveHealthIndicator (
. createReactiveHealthIndicator (
healthAggregator . getIfAvailable ( OrderedHealthAggregator : : new ) ,
healthAggregator . getIfAvailable ( OrderedHealthAggregator : : new ) ,
reactiveHealthIndicators
reactiveHealthIndicators
@ -83,10 +84,9 @@ public class HealthWebEndpointManagementContextConfiguration {
@ConditionalOnEnabledEndpoint
@ConditionalOnEnabledEndpoint
@ConditionalOnBean ( HealthEndpoint . class )
@ConditionalOnBean ( HealthEndpoint . class )
public ReactiveHealthEndpointWebExtension reactiveHealthEndpointWebExtension (
public ReactiveHealthEndpointWebExtension reactiveHealthEndpointWebExtension (
ReactiveHealthIndicator reactiveHealthIndicator ,
HealthStatusHttpMapper healthStatusHttpMapper ,
HealthStatusHttpMapper healthStatusHttpMapper ,
HealthEndpointProperties properties ) {
HealthEndpointProperties properties ) {
return new ReactiveHealthEndpointWebExtension ( reactiveHealthIndicator,
return new ReactiveHealthEndpointWebExtension ( this . reactiveHealthIndicator,
healthStatusHttpMapper , properties . isShowDetails ( ) ) ;
healthStatusHttpMapper , properties . isShowDetails ( ) ) ;
}
}