Class ProcessesXmlProcessor

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

    public class ProcessesXmlProcessor
    extends java.lang.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 Summary

      Fields 
      Modifier and Type Field Description
      static int PRIORITY  
      static java.lang.String PROCESSES_XML  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void deploy​(org.jboss.as.server.deployment.DeploymentPhaseContext phaseContext)  
      protected java.lang.String[] getDeploymentDescriptors​(org.jboss.as.server.deployment.DeploymentUnit deploymentUnit)  
      protected java.util.List<java.net.URL> getDeploymentDescriptorUrls​(org.jboss.modules.Module module, java.lang.String[] deploymentDescriptors)  
      protected org.jboss.vfs.VirtualFile getFile​(java.net.URL processesXmlResource)  
      protected java.util.Enumeration<java.net.URL> getProcessesXmlResources​(org.jboss.modules.Module module, java.lang.String[] deploymentDescriptors)  
      protected boolean isEmptyFile​(java.net.URL url)  
      protected ProcessesXml parseProcessesXml​(java.net.URL url)  
      void undeploy​(org.jboss.as.server.deployment.DeploymentUnit context)  
      • Methods inherited from class java.lang.Object

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

      • ProcessesXmlProcessor

        public ProcessesXmlProcessor()
    • 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
      • getDeploymentDescriptorUrls

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

        protected java.lang.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 java.util.Enumeration<java.net.URL> getProcessesXmlResources​(org.jboss.modules.Module module,
                                                                               java.lang.String[] deploymentDescriptors)
                                                                        throws org.jboss.as.server.deployment.DeploymentUnitProcessingException
        Throws:
        org.jboss.as.server.deployment.DeploymentUnitProcessingException
      • getFile

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

        protected boolean isEmptyFile​(java.net.URL url)
      • parseProcessesXml

        protected ProcessesXml parseProcessesXml​(java.net.URL url)
      • undeploy

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