Package io.quarkus.deployment.builditem
Class LaunchModeBuildItem
java.lang.Object
io.quarkus.builder.item.BuildItem
io.quarkus.builder.item.SimpleBuildItem
io.quarkus.deployment.builditem.LaunchModeBuildItem
Indicates the type of launch.
-
Constructor Summary
ConstructorDescriptionLaunchModeBuildItem
(LaunchMode launchMode, Optional<DevModeType> devModeType, boolean auxiliaryApplication, Optional<DevModeType> auxiliaryDevModeType, boolean test) -
Method Summary
Modifier and TypeMethodDescriptionThe dev mode type of the main application.The development mode type.boolean
An Auxiliary Application is a second application running in the same JVM as a primary application.boolean
Whether the development mode type is not local.boolean
isTest()
If this is a test.
-
Constructor Details
-
LaunchModeBuildItem
public LaunchModeBuildItem(LaunchMode launchMode, Optional<DevModeType> devModeType, boolean auxiliaryApplication, Optional<DevModeType> auxiliaryDevModeType, boolean test)
-
-
Method Details
-
getLaunchMode
-
getDevModeType
The development mode type.Note that even for NORMAL launch modes this could be generating an application for the local side of remote dev mode, so this may be set even for launch mode normal.
-
isNotLocalDevModeType
public boolean isNotLocalDevModeType()Whether the development mode type is not local.- Returns:
- true if
getDevModeType()
is notDevModeType.LOCAL
-
isAuxiliaryApplication
public boolean isAuxiliaryApplication()An Auxiliary Application is a second application running in the same JVM as a primary application.Currently, this is done to allow running tests in dev mode, while the main dev mode process continues to run.
-
getAuxiliaryDevModeType
The dev mode type of the main application. -
isTest
public boolean isTest()If this is a test. Dev mode tests don't launch with a launch mode TEST, so this can be used to determine if we are in a dev mode test.
-