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 Details

    • LaunchModeBuildItem

      public LaunchModeBuildItem(io.quarkus.runtime.LaunchMode launchMode, Optional<io.quarkus.dev.spi.DevModeType> devModeType, boolean auxiliaryApplication, Optional<io.quarkus.dev.spi.DevModeType> auxiliaryDevModeType, boolean test)
  • Method Details

    • getLaunchMode

      public io.quarkus.runtime.LaunchMode getLaunchMode()
    • getDevModeType

      public Optional<io.quarkus.dev.spi.DevModeType> 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 not DevModeType.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

      public Optional<io.quarkus.dev.spi.DevModeType> 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.