Class TestAotDetector

java.lang.Object
org.springframework.test.context.aot.TestAotDetector

public abstract class TestAotDetector extends Object
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 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 than agent).

      Returns:
      true if AOT optimizations must be considered
      See Also: