Enum Class LaunchMode

java.lang.Object
java.lang.Enum<LaunchMode>
io.quarkus.runtime.LaunchMode
All Implemented Interfaces:
Serializable, Comparable<LaunchMode>, Constable

public enum LaunchMode extends Enum<LaunchMode>
  • Enum Constant Details

    • NORMAL

      public static final LaunchMode NORMAL
      A normal production build. At the moment this can be both native image or JVM mode, but eventually these will likely be split
    • DEVELOPMENT

      public static final LaunchMode DEVELOPMENT
      quarkus:dev or an IDE launch (when we support IDE launch)
    • TEST

      public static final LaunchMode TEST
      a test run
  • Method Details

    • values

      public static LaunchMode[] 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

      public static LaunchMode valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • isDevOrTest

      public boolean isDevOrTest()
    • isDev

      public static boolean isDev()
    • isRemoteDev

      public static boolean isRemoteDev()
      Returns true if the current launch is the server side of remote dev.
    • getDefaultProfile

      public String getDefaultProfile()
    • getProfileKey

      public String getProfileKey()
    • set

      public static void set(LaunchMode mode)
    • current

      public static LaunchMode current()
      Returns:
      The current launch mode