Class NativeUtil

java.lang.Object
org.flowable.common.engine.impl.util.NativeUtil

public class NativeUtil extends Object
A util for detecting a GraalVM native environment. This is inspired by the Spring NativeDetector
Author:
Filip Hrisafov
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • NativeUtil

      public NativeUtil()
  • Method Details

    • 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.