Skip to content
This repository was archived by the owner on Feb 23, 2023. It is now read-only.

Commit 48fa80a

Browse files
committed
tweaking hints on actuators
1 parent 20b0a56 commit 48fa80a

File tree

1 file changed

+2
-16
lines changed
  • spring-graalvm-native-configuration/src/main/java/org/springframework/boot/actuate/autoconfigure/endpoint/web/servlet

1 file changed

+2
-16
lines changed

spring-graalvm-native-configuration/src/main/java/org/springframework/boot/actuate/autoconfigure/endpoint/web/servlet/CommonWebActuatorTypes.java

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,24 +15,20 @@
1515
*/
1616
package org.springframework.boot.actuate.autoconfigure.endpoint.web.servlet;
1717

18-
import org.springframework.boot.actuate.autoconfigure.endpoint.web.CorsEndpointProperties;
1918
import org.springframework.boot.actuate.autoconfigure.web.ManagementContextConfiguration;
2019
import org.springframework.boot.actuate.autoconfigure.web.ManagementContextFactory;
2120
import org.springframework.boot.actuate.autoconfigure.web.ManagementContextType;
2221
import org.springframework.boot.actuate.autoconfigure.web.server.ManagementPortType;
2322
import org.springframework.boot.actuate.endpoint.web.EndpointMediaTypes;
24-
import org.springframework.boot.actuate.endpoint.web.PathMappedEndpoints;
2523
import org.springframework.boot.actuate.endpoint.web.PathMapper;
2624
import org.springframework.boot.actuate.endpoint.web.ServletEndpointRegistrar;
2725
import org.springframework.boot.actuate.endpoint.web.WebEndpointsSupplier;
2826
import org.springframework.boot.actuate.endpoint.web.annotation.EndpointWebExtension;
2927
import org.springframework.boot.actuate.endpoint.web.annotation.WebEndpoint;
3028
import org.springframework.boot.actuate.endpoint.web.annotation.WebEndpointDiscoverer;
31-
import org.springframework.boot.actuate.logging.LogFileWebEndpoint;
32-
import org.springframework.boot.actuate.management.HeapDumpWebEndpoint;
33-
import org.springframework.boot.actuate.trace.http.HttpTraceEndpoint;
3429
import org.springframework.boot.actuate.trace.http.HttpTraceRepository;
3530
import org.springframework.graalvm.extension.TypeInfo;
31+
import org.springframework.graalvm.type.AccessBits;
3632

3733
/**
3834
* Example... this could host @TypeInfo annotations that any other @NativeImageHint could pull in
@@ -41,18 +37,11 @@
4137
* @author Andy Clement
4238
*/
4339
@TypeInfo(types = {
44-
HttpTraceEndpoint.class,
45-
LogFileWebEndpoint.class,
4640
ServletEndpointRegistrar.class,
47-
org.springframework.boot.actuate.autoconfigure.web.jersey.JerseySameManagementContextConfiguration.class,
48-
org.springframework.boot.actuate.autoconfigure.web.jersey.JerseyChildManagementContextConfiguration.class,
4941
HttpTraceRepository.class,
5042
ManagementContextType.class,
51-
HeapDumpWebEndpoint.class,
5243
EndpointMediaTypes.class,
53-
PathMappedEndpoints.class,
5444
WebEndpointsSupplier.class,
55-
CorsEndpointProperties.class,
5645
EndpointWebExtension.class,
5746
WebEndpoint.class,
5847
WebEndpointDiscoverer.class,
@@ -64,10 +53,7 @@
6453
ManagementPortType.class,
6554
}, typeNames = {
6655
"org.springframework.boot.actuate.autoconfigure.web.server.EnableManagementContext",
67-
"org.springframework.boot.actuate.autoconfigure.web.server.ManagementContextAutoConfiguration$SameManagementContextConfiguration",
68-
"org.springframework.boot.actuate.autoconfigure.endpoint.web.jersey.JerseyWebEndpointManagementContextConfiguration",
69-
"org.springframework.boot.actuate.autoconfigure.endpoint.web.MappingWebEndpointPathMapper",
7056
"org.springframework.boot.actuate.endpoint.web.annotation.WebEndpointFilter",
71-
})
57+
},access=AccessBits.LOAD_AND_CONSTRUCT|AccessBits.PUBLIC_METHODS)
7258
public class CommonWebActuatorTypes {
7359
}

0 commit comments

Comments
 (0)