Class ProcessApplicationProcessor

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

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

    This processor detects a user-provided component annotated with the ProcessApplication-annotation.

    If no such component is found but the deployment unit carries a META-INF/processes.xml file, a Singleton Session Bean component is synthesized.

    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 org.jboss.as.ee.component.ComponentDescription detectExistingComponent​(org.jboss.as.server.deployment.DeploymentUnit deploymentUnit)
      Detect an existing ProcessApplication component.
      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

      • ProcessApplicationProcessor

        public ProcessApplicationProcessor()
    • 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
      • detectExistingComponent

        protected org.jboss.as.ee.component.ComponentDescription detectExistingComponent​(org.jboss.as.server.deployment.DeploymentUnit deploymentUnit)
                                                                                  throws org.jboss.as.server.deployment.DeploymentUnitProcessingException
        Detect an existing ProcessApplication component.
        Throws:
        org.jboss.as.server.deployment.DeploymentUnitProcessingException
      • undeploy

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