- java.lang.Object
-
- io.helidon.common.NativeImageHelper
-
public final class NativeImageHelper extends Object
Utility for GraalVM native image.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisBuildTime()Check whether we are in native image build time.static booleanisNativeImage()Check whether we are in native image environment (either build time or runtime).static booleanisRuntime()Check whether we are in native image runtime.
-
-
-
Method Detail
-
isRuntime
public static boolean isRuntime()
Check whether we are in native image runtime.- Returns:
trueif 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:
trueif 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:
trueif we are in native image environment at the time this method is called
-
-