Class VertxDeploymentAttachment
java.lang.Object
org.wildfly.extension.vertx.processors.VertxDeploymentAttachment
VertxDeployment marker class to flag if the DeploymentUnit has vertx deployment configuration defined.
- Author:
- Lin Gao
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidattachVertxDeployments(org.jboss.as.server.deployment.DeploymentUnit deployment) Mark the deployment as a Vertx deployment.static org.jboss.as.server.deployment.DeploymentUnitgetRootDeploymentUnit(org.jboss.as.server.deployment.DeploymentUnit deploymentUnit) Returns the parent of the given deployment unit if such a parent exists.static booleanisVertxDeployment(org.jboss.as.server.deployment.DeploymentUnit deploymentUnit) If the the parent deploymentUnit is marked as a vertx deployment, it is used byVertxDependenciesProcessorto add vertx module dependencies.static voidremoveVertxDeploymentsMeta(org.jboss.as.server.deployment.DeploymentUnit deploymentUnit) Removes the attachment from the deployment unit
-
Method Details
-
attachVertxDeployments
public static void attachVertxDeployments(org.jboss.as.server.deployment.DeploymentUnit deployment) Mark the deployment as a Vertx deployment.- Parameters:
deployment- to be marked
-
isVertxDeployment
public static boolean isVertxDeployment(org.jboss.as.server.deployment.DeploymentUnit deploymentUnit) If the the parent deploymentUnit is marked as a vertx deployment, it is used byVertxDependenciesProcessorto add vertx module dependencies.- Parameters:
deploymentUnit- the deployment unit- Returns:
- true if it is marked as a vertx deployment, false otherwise.
-
removeVertxDeploymentsMeta
public static void removeVertxDeploymentsMeta(org.jboss.as.server.deployment.DeploymentUnit deploymentUnit) Removes the attachment from the deployment unit- Parameters:
deploymentUnit- the deployment unit
-
getRootDeploymentUnit
public static org.jboss.as.server.deployment.DeploymentUnit getRootDeploymentUnit(org.jboss.as.server.deployment.DeploymentUnit deploymentUnit) Returns the parent of the given deployment unit if such a parent exists. If the given deployment unit is the parent deployment unit, it is returned.
-