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... deployers)
Check if any of the specified deployers are 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 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
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
.
-
-