Class LaunchModeBuildItem


public final class LaunchModeBuildItem extends SimpleBuildItem
Indicates the type of launch.
  • Constructor Details

  • Method Details

    • getLaunchMode

      public LaunchMode getLaunchMode()
    • getDevModeType

      public Optional<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<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.