Class NativeImageHelper

java.lang.Object
io.helidon.common.NativeImageHelper

public final class NativeImageHelper extends Object
Utility for GraalVM native image.
  • Method Details

    • isRuntime

      public static boolean isRuntime()
      Check whether we are in native image runtime.
      Returns:
      true if we are in native image runtime at the time this method is called
    • isBuildTime

      public static boolean isBuildTime()
      Check whether we are in native image build time.
      Returns:
      true if we are in native image build time at the time this method is called
    • isNativeImage

      public static boolean isNativeImage()
      Check whether we are in native image environment (either build time or runtime).
      Returns:
      true if we are in native image environment at the time this method is called