Package io.quarkus.runtime
Enum LaunchMode
- java.lang.Object
-
- java.lang.Enum<LaunchMode>
-
- io.quarkus.runtime.LaunchMode
-
- All Implemented Interfaces:
Serializable
,Comparable<LaunchMode>
public enum LaunchMode extends Enum<LaunchMode>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DEVELOPMENT
quarkus:dev or an IDE launch (when we support IDE launch)NORMAL
A normal production build.TEST
a test run
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LaunchMode
current()
String
getDefaultProfile()
boolean
isDevOrTest()
static boolean
isRemoteDev()
Returns true if the current launch is the server side of remote dev.static LaunchMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static LaunchMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NORMAL
public static final LaunchMode NORMAL
A normal production build. At the moment this can be both native image or JVM mode, but eventually these will likely be split
-
DEVELOPMENT
public static final LaunchMode DEVELOPMENT
quarkus:dev or an IDE launch (when we support IDE launch)
-
TEST
public static final LaunchMode TEST
a test run
-
-
Method Detail
-
values
public static LaunchMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (LaunchMode c : LaunchMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LaunchMode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
isDevOrTest
public boolean isDevOrTest()
-
isRemoteDev
public static boolean isRemoteDev()
Returns true if the current launch is the server side of remote dev.
-
getDefaultProfile
public String getDefaultProfile()
-
current
public static LaunchMode current()
- Returns:
- The current launch mode
-
-