Class ProcessApplicationAttachments


  • public class ProcessApplicationAttachments
    extends java.lang.Object
    Author:
    Daniel Meyer
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void addProcessesXml​(org.jboss.as.server.deployment.DeploymentUnit unit, ProcessesXmlWrapper processesXmlWrapper)
      Attach the parsed ProcessesXml file to a deployment unit.
      static void attachPostDeployDescription​(org.jboss.as.server.deployment.DeploymentUnit deploymentUnit, org.jboss.jandex.AnnotationInstance annotation)
      Attach the AnnotationInstances for the PostDeploy methods
      static void attachPreUndeployDescription​(org.jboss.as.server.deployment.DeploymentUnit deploymentUnit, org.jboss.jandex.AnnotationInstance annotation)
      Attach the AnnotationInstances for the PreUndeploy methods
      static void attachProcessApplicationComponent​(org.jboss.as.server.deployment.DeploymentUnit deploymentUnit, org.jboss.as.ee.component.ComponentDescription componentDescription)
      Attach the ComponentDescription for the AbstractProcessApplication component
      static org.jboss.jandex.AnnotationInstance getPostDeployDescription​(org.jboss.as.server.deployment.DeploymentUnit deploymentUnit)  
      static org.jboss.jandex.AnnotationInstance getPreUndeployDescription​(org.jboss.as.server.deployment.DeploymentUnit deploymentUnit)  
      static org.jboss.as.ee.component.ComponentDescription getProcessApplicationComponent​(org.jboss.as.server.deployment.DeploymentUnit deploymentUnit)
      Returns the ComponentDescription for the AbstractProcessApplication component
      static java.util.List<ProcessesXmlWrapper> getProcessesXmls​(org.jboss.as.server.deployment.DeploymentUnit deploymentUnit)
      Returns the attached ProcessesXml marker or null;
      static boolean isPartOfProcessApplication​(org.jboss.as.server.deployment.DeploymentUnit unit)
      return true if the deployment unit is either itself a process application or part of a process application.
      static boolean isProcessApplication​(org.jboss.as.server.deployment.DeploymentUnit deploymentUnit)
      Returns true if the DeploymentUnit itself is a process application (carries a processes.xml)
      static void mark​(org.jboss.as.server.deployment.DeploymentUnit unit)
      marks a a DeploymentUnit as a process application
      static void markPartOfProcessApplication​(org.jboss.as.server.deployment.DeploymentUnit unit)
      marks a a DeploymentUnit as part of a process application
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • addProcessesXml

        public static void addProcessesXml​(org.jboss.as.server.deployment.DeploymentUnit unit,
                                           ProcessesXmlWrapper processesXmlWrapper)
        Attach the parsed ProcessesXml file to a deployment unit.
      • getProcessesXmls

        public static java.util.List<ProcessesXmlWrapper> getProcessesXmls​(org.jboss.as.server.deployment.DeploymentUnit deploymentUnit)
        Returns the attached ProcessesXml marker or null;
      • mark

        public static void mark​(org.jboss.as.server.deployment.DeploymentUnit unit)
        marks a a DeploymentUnit as a process application
      • markPartOfProcessApplication

        public static void markPartOfProcessApplication​(org.jboss.as.server.deployment.DeploymentUnit unit)
        marks a a DeploymentUnit as part of a process application
      • isPartOfProcessApplication

        public static boolean isPartOfProcessApplication​(org.jboss.as.server.deployment.DeploymentUnit unit)
        return true if the deployment unit is either itself a process application or part of a process application.
      • isProcessApplication

        public static boolean isProcessApplication​(org.jboss.as.server.deployment.DeploymentUnit deploymentUnit)
        Returns true if the DeploymentUnit itself is a process application (carries a processes.xml)
      • getProcessApplicationComponent

        public static org.jboss.as.ee.component.ComponentDescription getProcessApplicationComponent​(org.jboss.as.server.deployment.DeploymentUnit deploymentUnit)
        Returns the ComponentDescription for the AbstractProcessApplication component
      • attachProcessApplicationComponent

        public static void attachProcessApplicationComponent​(org.jboss.as.server.deployment.DeploymentUnit deploymentUnit,
                                                             org.jboss.as.ee.component.ComponentDescription componentDescription)
        Attach the ComponentDescription for the AbstractProcessApplication component
      • attachPostDeployDescription

        public static void attachPostDeployDescription​(org.jboss.as.server.deployment.DeploymentUnit deploymentUnit,
                                                       org.jboss.jandex.AnnotationInstance annotation)
        Attach the AnnotationInstances for the PostDeploy methods
      • attachPreUndeployDescription

        public static void attachPreUndeployDescription​(org.jboss.as.server.deployment.DeploymentUnit deploymentUnit,
                                                        org.jboss.jandex.AnnotationInstance annotation)
        Attach the AnnotationInstances for the PreUndeploy methods
      • getPostDeployDescription

        public static org.jboss.jandex.AnnotationInstance getPostDeployDescription​(org.jboss.as.server.deployment.DeploymentUnit deploymentUnit)
        Returns:
        the description of the PostDeploy method
      • getPreUndeployDescription

        public static org.jboss.jandex.AnnotationInstance getPreUndeployDescription​(org.jboss.as.server.deployment.DeploymentUnit deploymentUnit)
        Returns:
        the description of the PreUndeploy method