All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.quarkus.runtime.configuration.ProfileManager Maven / Gradle / Ivy

There is a newer version: 3.17.5
Show newest version
package io.quarkus.runtime.configuration;

import io.quarkus.runtime.LaunchMode;

/**
 * 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
  • *
* */ public class ProfileManager { private static volatile LaunchMode launchMode = LaunchMode.NORMAL; public static void setLaunchMode(LaunchMode mode) { launchMode = mode; } public static LaunchMode getLaunchMode() { return launchMode; } //NOTE: changes made here must be replicated in BootstrapProfile }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy