Class VertxDeploymentAttachment

java.lang.Object
org.wildfly.extension.vertx.processors.VertxDeploymentAttachment

public final class VertxDeploymentAttachment extends Object
VertxDeployment marker class to flag if the DeploymentUnit has vertx deployment configuration defined.
Author:
Lin Gao
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    attachVertxDeployments(org.jboss.as.server.deployment.DeploymentUnit deployment)
    Mark the deployment as a Vertx deployment.
    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.
    static boolean
    isVertxDeployment(org.jboss.as.server.deployment.DeploymentUnit deploymentUnit)
    If the the parent deploymentUnit is marked as a vertx deployment, it is used by VertxDependenciesProcessor to add vertx module dependencies.
    static void
    removeVertxDeploymentsMeta(org.jboss.as.server.deployment.DeploymentUnit deploymentUnit)
    Removes the attachment from the deployment unit

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 by VertxDependenciesProcessor to 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.