You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rework Cloud Foundry actuator support behind a pluggable abstraction
Deprecate `EndpointExposure.CLOUD_FOUNDRY` and introduce an alternative
implementation based on a pluggable abstraction.
The new `EndpointExposureOutcomeContributor` interface may now be used
to influence `@OnAvailableEndpointCondition` exposure results. Several
infrastructure beans that previously used the condition have been
refactored to always be registered, but tolerate missing endpoints.
A new smoke test application has been added that demonstrates how the
abstraction can be used by a third-party.
Closesgh-41135
Co-authored-by: Phillip Webb <[email protected]>
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/cache/CachesEndpointAutoConfiguration.java
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2012-2022 the original author or authors.
2
+
* Copyright 2012-2024 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -52,7 +52,7 @@ public CachesEndpoint cachesEndpoint(Map<String, CacheManager> cacheManagers) {
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/context/properties/ConfigurationPropertiesReportEndpointAutoConfiguration.java
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2012-2022 the original author or authors.
2
+
* Copyright 2012-2024 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -55,7 +55,7 @@ public ConfigurationPropertiesReportEndpoint configurationPropertiesReportEndpoi
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/endpoint/condition/ConditionalOnAvailableEndpoint.java
+15-10Lines changed: 15 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2012-2021 the original author or authors.
2
+
* Copyright 2012-2024 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -31,15 +31,18 @@
31
31
/**
32
32
* {@link Conditional @Conditional} that checks whether an endpoint is available. An
33
33
* endpoint is considered available if it is both enabled and exposed on the specified
34
-
* technologies. Matches enablement according to the endpoints specific
35
-
* {@link Environment} property, falling back to
36
-
* {@code management.endpoints.enabled-by-default} or failing that
37
-
* {@link Endpoint#enableByDefault()}. Matches exposure according to any of the
38
-
* {@code management.endpoints.web.exposure.<id>} or
39
-
* {@code management.endpoints.jmx.exposure.<id>} specific properties or failing that to
40
-
* whether the application runs on
41
-
* {@link org.springframework.boot.cloud.CloudPlatform#CLOUD_FOUNDRY}. Both those
42
-
* conditions should match for the endpoint to be considered available.
34
+
* technologies.
35
+
* <p>
36
+
* Matches enablement according to the endpoints specific {@link Environment} property,
37
+
* falling back to {@code management.endpoints.enabled-by-default} or failing that
38
+
* {@link Endpoint#enableByDefault()}.
39
+
* <p>
40
+
* Matches exposure according to any of the {@code management.endpoints.web.exposure.<id>}
41
+
* or {@code management.endpoints.jmx.exposure.<id>} specific properties or failing that
42
+
* to whether any {@link EndpointExposureOutcomeContributor} exposes the endpoint.
43
+
* <p>
44
+
* Both enablement and exposure conditions should match for the endpoint to be considered
45
+
* available.
43
46
* <p>
44
47
* When placed on a {@code @Bean} method, the endpoint defaults to the return type of the
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/endpoint/condition/OnAvailableEndpointCondition.java
+74-49Lines changed: 74 additions & 49 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2012-2023 the original author or authors.
2
+
* Copyright 2012-2024 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/endpoint/expose/EndpointExposure.java
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2012-2023 the original author or authors.
2
+
* Copyright 2012-2024 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -37,7 +37,10 @@ public enum EndpointExposure {
37
37
/**
38
38
* Exposed on Cloud Foundry over `/cloudfoundryapplication`.
39
39
* @since 2.6.4
40
+
* @deprecated since 3.4.0 for removal in 3.6.0 in favor of using
0 commit comments