Class ProcessesXmlProcessor

java.lang.Object
org.camunda.bpm.container.impl.jboss.deployment.processor.ProcessesXmlProcessor
All Implemented Interfaces:
org.jboss.as.server.deployment.DeploymentUnitProcessor

public class ProcessesXmlProcessor extends Object implements org.jboss.as.server.deployment.DeploymentUnitProcessor

Detects and processes all META-INF/processes.xml files that are visible from the module classloader of the DeploymentUnit.

This is POST_MODULE so we can take into account module visibility in case of composite deployments (EARs)

Author:
Daniel Meyer
  • Field Details

  • Constructor Details

    • ProcessesXmlProcessor

      public ProcessesXmlProcessor()
  • Method Details

    • 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
    • getDeploymentDescriptorUrls

      protected List<URL> getDeploymentDescriptorUrls(org.jboss.modules.Module module, String[] deploymentDescriptors) throws org.jboss.as.server.deployment.DeploymentUnitProcessingException
      Throws:
      org.jboss.as.server.deployment.DeploymentUnitProcessingException
    • getDeploymentDescriptors

      protected String[] getDeploymentDescriptors(org.jboss.as.server.deployment.DeploymentUnit deploymentUnit) throws org.jboss.as.server.deployment.DeploymentUnitProcessingException
      Throws:
      org.jboss.as.server.deployment.DeploymentUnitProcessingException
    • getProcessesXmlResources

      protected Enumeration<URL> getProcessesXmlResources(org.jboss.modules.Module module, String[] deploymentDescriptors) throws org.jboss.as.server.deployment.DeploymentUnitProcessingException
      Throws:
      org.jboss.as.server.deployment.DeploymentUnitProcessingException
    • getFile

      protected org.jboss.vfs.VirtualFile getFile(URL processesXmlResource) throws org.jboss.as.server.deployment.DeploymentUnitProcessingException
      Throws:
      org.jboss.as.server.deployment.DeploymentUnitProcessingException
    • isEmptyFile

      protected boolean isEmptyFile(URL url)
    • parseProcessesXml

      protected ProcessesXml parseProcessesXml(URL url)
    • undeploy

      public void undeploy(org.jboss.as.server.deployment.DeploymentUnit context)
      Specified by:
      undeploy in interface org.jboss.as.server.deployment.DeploymentUnitProcessor