Class TestAotDetector
java.lang.Object
org.springframework.test.context.aot.TestAotDetector
TestContext framework specific utility for determining if AOT-processed
optimizations must be used rather than the regular runtime.
Strictly for internal use within the framework.
- Since:
- 6.0.9
- Author:
- Sam Brannen
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
Determine whether AOT optimizations must be considered at runtime.
-
Constructor Details
-
TestAotDetector
public TestAotDetector()
-
-
Method Details
-
useGeneratedArtifacts
public static boolean useGeneratedArtifacts()Determine whether AOT optimizations must be considered at runtime.This can be triggered using the "spring.aot.enabled" Spring property or via GraalVM's
"org.graalvm.nativeimage.imagecode"
JVM system property (if set to any non-empty value other thanagent
).- Returns:
true
if AOT optimizations must be considered- See Also:
-