Package org.restheart.graal
Class ImageInfo
java.lang.Object
org.restheart.graal.ImageInfo
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanReturns true if (at the time of the call) code is executing in the context of image buildingstatic booleanReturns true if (at the time of the call) code is executing in the context of image building or during image runtime, else false.static booleanReturns true if (at the time of the call) code is executing at image runtime.static booleanReturns true if the image is built as an executable.static booleanReturns true if the image is build as a shared library.
-
Constructor Details
-
ImageInfo
public ImageInfo()
-
-
Method Details
-
inImageBuildtimeCode
public static boolean inImageBuildtimeCode()Returns true if (at the time of the call) code is executing in the context of image building- Returns:
-
inImageCode
public static boolean inImageCode()Returns true if (at the time of the call) code is executing in the context of image building or during image runtime, else false.- Returns:
-
inImageRuntimeCode
public static boolean inImageRuntimeCode()Returns true if (at the time of the call) code is executing at image runtime.- Returns:
-
isExecutable
public static boolean isExecutable()Returns true if the image is built as an executable.- Returns:
-