Package io.quarkus.deployment.util
Class DeploymentUtil
java.lang.Object
io.quarkus.deployment.util.DeploymentUtil
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the available deployers.static boolean
static boolean
isDeploymentEnabled
(String... deployers) Check if any of the specified deployers are enabled.
-
Field Details
-
DEPLOY
- See Also:
-
-
Constructor Details
-
DeploymentUtil
public DeploymentUtil()
-
-
Method Details
-
getDeployers
Get the available deployers. The list is obtained by checking for propertiesquarkus.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
- Returns:
- a
Predicate
that tests if deployer is enabled.
-
getEnabledDeployer
- Returns:
- the name of the first deployer that is explicitly enabled
-
isDeploymentEnabled
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
.
-