程序包 cn.taketoday.aot
类 AotDetector
java.lang.Object
cn.taketoday.aot.AotDetector
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
-
字段概要
字段修饰符和类型字段说明static final StringSystem property that indicates the application should run with AOT generated artifacts.private static final boolean -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static booleanDetermine whether AOT optimizations must be considered at runtime.
-
字段详细资料
-
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
-