Class DeploymentUtil


  • public class DeploymentUtil
    extends Object
    • Constructor Detail

      • DeploymentUtil

        public DeploymentUtil()
    • Method Detail

      • 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 deploye 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... deployer)
        Check if any of the specified deployers is enabled.
        Parameters:
        the - name of the speicifed deployers.
        Returns:
        true if the specified deploy is explicitly enabled, fasle otherwise.
      • isDeploymentEnabled

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