- 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 boolean
isBuildTime()
Check whether we are in native image build time.static boolean
isNativeImage()
Check whether we are in native image environment (either build time or runtime).static boolean
isRuntime()
Check whether we are in native image runtime.
-
-
-
Method Detail
-
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
-
-