Class ProfileManager

java.lang.Object
io.quarkus.runtime.configuration.ProfileManager

public class ProfileManager extends Object
Class that is responsible for resolving the current profile As this is needed immediately after startup it does not use any of the usual build/config infrastructure. The profile is resolved in the following way:
  • The quarkus.profile system property
  • The QUARKUS_PROFILE environment entry
  • The default runtime profile provided during build
  • The default property for the launch mode
  • Field Details

  • Constructor Details

    • ProfileManager

      public ProfileManager()
  • Method Details

    • setLaunchMode

      public static void setLaunchMode(LaunchMode mode)
    • getLaunchMode

      public static LaunchMode getLaunchMode()
    • setRuntimeDefaultProfile

      public static void setRuntimeDefaultProfile(String profile)
    • getActiveProfile

      @Deprecated public static String getActiveProfile()
      Deprecated.
      This method is not suited to multiple profiles, because it returns a single string. Please use ConfigUtils.getProfiles() instead, which returns a List of profiles.