Class ProcessApplicationProcessor

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

    public class ProcessApplicationProcessor
    extends 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
    • 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
      • getAnnotationsFromSupportedClasses

        protected List<org.jboss.jandex.AnnotationInstance> getAnnotationsFromSupportedClasses​(org.jboss.as.server.deployment.annotation.CompositeIndex compositeIndex,
                                                                                               Class<?> annotationClass,
                                                                                               Set<org.jboss.jandex.ClassInfo> unsupportedClasses)
      • getClassInfo

        protected org.jboss.jandex.ClassInfo getClassInfo​(org.jboss.jandex.AnnotationInstance annotation)
      • undeploy

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