Skip to content

Commit c6cf76a

Browse files
committed
add runtime hints
1 parent db17a6d commit c6cf76a

File tree

1 file changed

+6
-0
lines changed
  • smoke-tests-otel-starter/spring-boot-3/src/main/java/io/opentelemetry/spring/smoketest

1 file changed

+6
-0
lines changed

smoke-tests-otel-starter/spring-boot-3/src/main/java/io/opentelemetry/spring/smoketest/RuntimeHints.java

+6
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55

66
package io.opentelemetry.spring.smoketest;
77

8+
import org.springframework.aot.hint.MemberCategory;
89
import org.springframework.aot.hint.RuntimeHintsRegistrar;
10+
import org.springframework.aot.hint.TypeReference;
911

1012
// Necessary for GraalVM native test
1113
public class RuntimeHints implements RuntimeHintsRegistrar {
@@ -14,5 +16,9 @@ public class RuntimeHints implements RuntimeHintsRegistrar {
1416
public void registerHints(
1517
org.springframework.aot.hint.RuntimeHints hints, ClassLoader classLoader) {
1618
hints.resources().registerResourceBundle("org.apache.commons.dbcp2.LocalStrings");
19+
hints.reflection().registerType(
20+
TypeReference.of("org.testcontainers.shaded.com.github.dockerjava.core.DockerConfigFile"),
21+
MemberCategory.INVOKE_DECLARED_CONSTRUCTORS,
22+
MemberCategory.INVOKE_DECLARED_METHODS);
1723
}
1824
}

0 commit comments

Comments
 (0)