Skip to content

Commit df1837a

Browse files
Remove deprecated HealthIndicator and HealthAggregator 2.2 code
1 parent 7611254 commit df1837a

File tree

54 files changed

+18
-3581
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+18
-3581
lines changed

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/health/CompositeHealthIndicatorConfiguration.java

Lines changed: 0 additions & 69 deletions
This file was deleted.

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/health/CompositeReactiveHealthIndicatorConfiguration.java

Lines changed: 0 additions & 69 deletions
This file was deleted.

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/health/HealthAggregatorStatusAggregatorAdapter.java

Lines changed: 0 additions & 59 deletions
This file was deleted.

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/health/HealthContributorRegistryHealthIndicatorRegistryAdapter.java

Lines changed: 0 additions & 79 deletions
This file was deleted.

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/health/HealthEndpointAutoConfiguration.java

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2019 the original author or authors.
2+
* Copyright 2012-2020 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -20,7 +20,6 @@
2020
import org.springframework.boot.actuate.health.HealthEndpoint;
2121
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
2222
import org.springframework.boot.context.properties.EnableConfigurationProperties;
23-
import org.springframework.context.annotation.Bean;
2423
import org.springframework.context.annotation.Configuration;
2524
import org.springframework.context.annotation.Import;
2625

@@ -30,23 +29,14 @@
3029
* @author Andy Wilkinson
3130
* @author Stephane Nicoll
3231
* @author Phillip Webb
32+
* @author Scott Frederick
3333
* @since 2.0.0
3434
*/
3535
@Configuration(proxyBeanMethods = false)
3636
@ConditionalOnAvailableEndpoint(endpoint = HealthEndpoint.class)
37-
@EnableConfigurationProperties
38-
@Import({ LegacyHealthEndpointAdaptersConfiguration.class, LegacyHealthEndpointCompatibilityConfiguration.class,
39-
HealthEndpointConfiguration.class, ReactiveHealthEndpointConfiguration.class,
37+
@EnableConfigurationProperties(HealthEndpointProperties.class)
38+
@Import({ HealthEndpointConfiguration.class, ReactiveHealthEndpointConfiguration.class,
4039
HealthEndpointWebExtensionConfiguration.class, HealthEndpointReactiveWebExtensionConfiguration.class })
4140
public class HealthEndpointAutoConfiguration {
4241

43-
@Bean
44-
@SuppressWarnings("deprecation")
45-
HealthEndpointProperties healthEndpointProperties(HealthIndicatorProperties healthIndicatorProperties) {
46-
HealthEndpointProperties healthEndpointProperties = new HealthEndpointProperties();
47-
healthEndpointProperties.getStatus().getOrder().addAll(healthIndicatorProperties.getOrder());
48-
healthEndpointProperties.getStatus().getHttpMapping().putAll(healthIndicatorProperties.getHttpMapping());
49-
return healthEndpointProperties;
50-
}
51-
5242
}

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/health/HealthIndicatorAutoConfiguration.java

Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
 (0)