Package io.quarkus.runtime.configuration
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 Summary
Fields Modifier and Type Field Description static String
QUARKUS_PROFILE_ENV
static String
QUARKUS_PROFILE_PROP
static String
QUARKUS_TEST_PROFILE_PROP
-
Constructor Summary
Constructors Constructor Description ProfileManager()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static String
getActiveProfile()
Deprecated.This method is not suited to multiple profiles, because it returns a single string.static LaunchMode
getLaunchMode()
static void
setLaunchMode(LaunchMode mode)
static void
setRuntimeDefaultProfile(String profile)
-
-
-
Field Detail
-
QUARKUS_PROFILE_ENV
public static final String QUARKUS_PROFILE_ENV
- See Also:
- Constant Field Values
-
QUARKUS_PROFILE_PROP
public static final String QUARKUS_PROFILE_PROP
- See Also:
- Constant Field Values
-
QUARKUS_TEST_PROFILE_PROP
public static final String QUARKUS_TEST_PROFILE_PROP
- See Also:
- Constant Field Values
-
-
Method Detail
-
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 useConfigUtils.getProfiles()
instead, which returns a List of profiles.
-
-