java.lang.Object
io.helidon.common.NativeImageHelper
Utility for GraalVM native image.
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanCheck whether we are in native image build time.static booleanCheck whether we are in native image environment (either build time or runtime).static booleanCheck whether we are in native image runtime.
-
Method Details
-
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
-