Package io.quarkus.deployment.util
Class DeploymentUtil
- java.lang.Object
-
- io.quarkus.deployment.util.DeploymentUtil
-
public class DeploymentUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description DeploymentUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<String>
getDeployers()
Get the available deployers.static Optional<String>
getEnabledDeployer()
static Predicate<String>
isDeployExplicitlyEnabled()
static boolean
isDeploymentEnabled()
static boolean
isDeploymentEnabled(String... deployer)
Check if any of the specified deployers is enabled.
-
-
-
Field Detail
-
DEPLOY
public static final String DEPLOY
- See Also:
- Constant Field Values
-
-
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`.
-
-