Package io.quarkus.runtime
Enum Class LaunchMode
- All Implemented Interfaces:
Serializable,Comparable<LaunchMode>,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionquarkus:dev or an IDE launch (when we support IDE launch)A normal production build.A normal production build.a test run -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic LaunchModecurrent()booleanisDev()booleanbooleanbooleanbooleanbooleanReturns true if the current launch is a production mode, such as NORMAL or RUN.booleanReturns true if the current launch is the server side of remote dev.static voidset(LaunchMode mode) static LaunchModeReturns the enum constant of this class with the specified name.static LaunchMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NORMAL
A normal production build. At the moment this can be both native image or JVM mode, but eventually these will likely be split -
RUN
A normal production build. At the moment this can be both native image or JVM mode, but eventually these will likely be split -
DEVELOPMENT
quarkus:dev or an IDE launch (when we support IDE launch) -
TEST
a test run
-
-
Field Details
-
DEV_PROFILE
- See Also:
-
PROD_PROFILE
- See Also:
-
TEST_PROFILE
- See Also:
-
-
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
-
getDefaultProfile
-
getProfileKey
-
isDev
public boolean isDev() -
isRemoteDev
public boolean isRemoteDev()Returns true if the current launch is the server side of remote dev. -
isDevOrTest
public boolean isDevOrTest() -
isProduction
public boolean isProduction()Returns true if the current launch is a production mode, such as NORMAL or RUN. -
isDevServicesSupported
public boolean isDevServicesSupported() -
isDevResourcesSupported
public boolean isDevResourcesSupported() -
isLiveReloadSupported
public boolean isLiveReloadSupported() -
set
-
current
- Returns:
- The current launch mode
-