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
public final class LaunchModeBuildItem
extends io.quarkus.builder.item.SimpleBuildItem
Indicates the type of launch.
-
Constructor Summary
ConstructorsConstructorDescriptionLaunchModeBuildItem(io.quarkus.runtime.LaunchMode launchMode, Optional<io.quarkus.dev.spi.DevModeType> devModeType, boolean auxiliaryApplication, Optional<io.quarkus.dev.spi.DevModeType> auxiliaryDevModeType, boolean test) -
Method Summary
Modifier and TypeMethodDescriptionOptional<io.quarkus.dev.spi.DevModeType> The dev mode type of the main application.Optional<io.quarkus.dev.spi.DevModeType> The development mode type.io.quarkus.runtime.LaunchModebooleanAn Auxiliary Application is a second application running in the same JVM as a primary application.booleanWhether the development mode type is not local.booleanisTest()If this is a test.
-
Constructor Details
-
LaunchModeBuildItem
-
-
Method Details
-
getLaunchMode
public io.quarkus.runtime.LaunchMode 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.
-