类 NativeDetector
java.lang.Object
cn.taketoday.core.NativeDetector
A common delegate for detecting a GraalVM native image environment.
- 从以下版本开始:
- 4.0
- 作者:
- Sebastien Deleuze, Harry Yang
-
嵌套类概要
嵌套类 -
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static booleanReturnstrueif running in a native image context (for examplebuildtime,runtime, oragent) expressed by setting theorg.graalvm.nativeimage.imagecodesystem property to any value.static booleaninNativeImage(NativeDetector.Context... contexts) Returnstrueif running in any of the specified native image context(s).
-
字段详细资料
-
imageCode
-
inNativeImage
private static final boolean inNativeImage
-
-
构造器详细资料
-
NativeDetector
public NativeDetector()
-
-
方法详细资料
-
inNativeImage
public static boolean inNativeImage()Returnstrueif running in a native image context (for examplebuildtime,runtime, oragent) expressed by setting theorg.graalvm.nativeimage.imagecodesystem property to any value. -
inNativeImage
Returnstrueif running in any of the specified native image context(s).- 参数:
contexts- the native image context(s)
-