Package io.quarkus.runtime.configuration
Class ProfileManager
java.lang.Object
io.quarkus.runtime.configuration.ProfileManager
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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
Deprecated.This method is not suited to multiple profiles, because it returns a single string.static LaunchMode
static void
setLaunchMode
(LaunchMode mode) static void
setRuntimeDefaultProfile
(String profile)
-
Field Details
-
QUARKUS_PROFILE_ENV
- See Also:
-
QUARKUS_PROFILE_PROP
- See Also:
-
QUARKUS_TEST_PROFILE_PROP
- See Also:
-
-
Constructor Details
-
ProfileManager
public ProfileManager()
-
-
Method Details
-
setLaunchMode
-
getLaunchMode
-
setRuntimeDefaultProfile
-
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.
-