类 NativeDetector

java.lang.Object
cn.taketoday.core.NativeDetector

public abstract class NativeDetector extends Object
A common delegate for detecting a GraalVM native image environment.
从以下版本开始:
4.0
作者:
Sebastien Deleuze, Harry Yang
  • 字段详细资料

    • imageCode

      @Nullable private static final String imageCode
    • inNativeImage

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

    • NativeDetector

      public NativeDetector()
  • 方法详细资料

    • inNativeImage

      public static boolean inNativeImage()
      Returns true if running in a native image context (for example buildtime, runtime, or agent) expressed by setting the org.graalvm.nativeimage.imagecode system property to any value.
    • inNativeImage

      public static boolean inNativeImage(NativeDetector.Context... contexts)
      Returns true if running in any of the specified native image context(s).
      参数:
      contexts - the native image context(s)