Class ProcessApplicationDeploymentProcessor

  • All Implemented Interfaces:
    org.jboss.as.server.deployment.DeploymentUnitProcessor

    public class ProcessApplicationDeploymentProcessor
    extends java.lang.Object
    implements org.jboss.as.server.deployment.DeploymentUnitProcessor

    This processor installs the process application into the container.

    First, we initialize the deployments for all process archives declared by the process application. It then registers a ProcessApplicationDeploymentService for each process archive to be deployed. Finally it registers the MscManagedProcessApplication service which depends on all the deployment services to have completed deployment

    Author:
    Daniel Meyer
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int PRIORITY  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void deploy​(org.jboss.as.server.deployment.DeploymentPhaseContext phaseContext)  
      protected java.util.Map<java.lang.String,​byte[]> getDeploymentResources​(ProcessArchiveXml processArchive, org.jboss.as.server.deployment.DeploymentUnit deploymentUnit, org.jboss.vfs.VirtualFile processesXmlFile)  
      protected org.jboss.as.ee.component.ComponentDescription getProcessApplicationComponent​(org.jboss.as.server.deployment.DeploymentUnit deploymentUnit)  
      protected org.jboss.msc.service.ServiceName getProcessApplicationViewServiceName​(org.jboss.as.ee.component.ComponentDescription paComponent)  
      protected ProcessEngine getProcessEngineForArchive​(org.jboss.msc.service.ServiceName serviceName, org.jboss.msc.service.ServiceRegistry serviceRegistry)  
      protected org.jboss.msc.service.ServiceName getProcessEngineServiceName​(ProcessArchiveXml processArchive)  
      void undeploy​(org.jboss.as.server.deployment.DeploymentUnit deploymentUnit)  
      protected java.net.URL vfsFileAsUrl​(org.jboss.vfs.VirtualFile processesXmlFile)  
      • Methods inherited from class java.lang.Object

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

      • ProcessApplicationDeploymentProcessor

        public ProcessApplicationDeploymentProcessor()
    • Method Detail

      • deploy

        public void deploy​(org.jboss.as.server.deployment.DeploymentPhaseContext phaseContext)
                    throws org.jboss.as.server.deployment.DeploymentUnitProcessingException
        Specified by:
        deploy in interface org.jboss.as.server.deployment.DeploymentUnitProcessor
        Throws:
        org.jboss.as.server.deployment.DeploymentUnitProcessingException
      • undeploy

        public void undeploy​(org.jboss.as.server.deployment.DeploymentUnit deploymentUnit)
        Specified by:
        undeploy in interface org.jboss.as.server.deployment.DeploymentUnitProcessor
      • getProcessApplicationViewServiceName

        protected org.jboss.msc.service.ServiceName getProcessApplicationViewServiceName​(org.jboss.as.ee.component.ComponentDescription paComponent)
      • getProcessApplicationComponent

        protected org.jboss.as.ee.component.ComponentDescription getProcessApplicationComponent​(org.jboss.as.server.deployment.DeploymentUnit deploymentUnit)
      • getProcessEngineForArchive

        protected ProcessEngine getProcessEngineForArchive​(org.jboss.msc.service.ServiceName serviceName,
                                                           org.jboss.msc.service.ServiceRegistry serviceRegistry)
      • getProcessEngineServiceName

        protected org.jboss.msc.service.ServiceName getProcessEngineServiceName​(ProcessArchiveXml processArchive)
      • getDeploymentResources

        protected java.util.Map<java.lang.String,​byte[]> getDeploymentResources​(ProcessArchiveXml processArchive,
                                                                                      org.jboss.as.server.deployment.DeploymentUnit deploymentUnit,
                                                                                      org.jboss.vfs.VirtualFile processesXmlFile)
      • vfsFileAsUrl

        protected java.net.URL vfsFileAsUrl​(org.jboss.vfs.VirtualFile processesXmlFile)