Class DeploymentUtil

java.lang.Object
io.quarkus.deployment.util.DeploymentUtil

public class DeploymentUtil extends Object
  • Field Details

  • Constructor Details

    • DeploymentUtil

      public DeploymentUtil()
  • Method Details

    • getDeployers

      public static List<String> getDeployers()
      Get the available deployers. The list is obtained by checking for properties quarkus.xxx.deploy. These properties have a default value and thus they will be found regardless of the actual user configuration, so we check for property names instead.
      Returns:
      a List with all available deployers.
    • isDeployExplicitlyEnabled

      public static Predicate<String> isDeployExplicitlyEnabled()
      Returns:
      a Predicate that tests if deployer is enabled.
    • getEnabledDeployer

      public static Optional<String> getEnabledDeployer()
      Returns:
      the name of the first deployer that is explicitly enabled
    • isDeploymentEnabled

      public static boolean isDeploymentEnabled(String... deployers)
      Check if any of the specified deployers are enabled.
      Parameters:
      deployers - name of the specified deployers.
      Returns:
      true if the specified deployer is explicitly enabled, false otherwise.
    • isDeploymentEnabled

      public static boolean isDeploymentEnabled()
      Returns:
      true if deployment is explicitly enabled using: quarkus.<deployment target>.deploy=true.