Package io.quarkus.runtime
Enum Class ImageMode
- All Implemented Interfaces:
Serializable
,Comparable<ImageMode>
,Constable
The image execution mode of the application.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe image mode which indicates that the application is running in a standard JVM.The image mode which indicates that the application is currently executing the build phase of a native static image.The image mode which indicates that the application is a native static image which is currently running on a target system. -
Method Summary
Modifier and TypeMethodDescriptionstatic ImageMode
current()
Get the current image mode.boolean
Determine whether the application image is a native static image.static ImageMode
Returns the enum constant of this class with the specified name.static ImageMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
JVM
The image mode which indicates that the application is running in a standard JVM. -
NATIVE_BUILD
The image mode which indicates that the application is currently executing the build phase of a native static image. -
NATIVE_RUN
The image mode which indicates that the application is a native static image which is currently running on a target system.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
isNativeImage
public boolean isNativeImage()Determine whether the application image is a native static image.- Returns:
true
if the application image is a native static image, orfalse
otherwise
-
current
Get the current image mode. Note that it is possible for the image mode to change during the lifetime of an application.- Returns:
- the image mode (not
null
)
-