程序包 cn.taketoday.aot

类 AotDetector

java.lang.Object
cn.taketoday.aot.AotDetector

public abstract class AotDetector extends Object
Utility for determining if AOT-processed optimizations must be used rather than the regular runtime. Strictly for internal use within the framework.
从以下版本开始:
4.0
作者:
Stephane Nicoll, Sebastien Deleuze, Harry Yang
  • 字段详细资料

    • AOT_ENABLED

      public static final String AOT_ENABLED
      System property that indicates the application should run with AOT generated artifacts. If such optimizations are not available, it is recommended to throw an exception rather than fall back to the regular runtime behavior.
      另请参阅:
    • inNativeImage

      private static final boolean inNativeImage
  • 构造器详细资料

    • AotDetector

      public AotDetector()
  • 方法详细资料

    • useGeneratedArtifacts

      public static boolean useGeneratedArtifacts()
      Determine whether AOT optimizations must be considered at runtime. This is mandatory in a native image but can be triggered on the JVM using the "infra.aot.enabled" Infra property.
      返回:
      whether AOT optimizations must be considered