Class ProcessApplicationProcessor

java.lang.Object
org.camunda.bpm.container.impl.jboss.deployment.processor.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
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    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.
    protected List<org.jboss.jandex.AnnotationInstance>
    getAnnotationsFromSupportedClasses(org.jboss.as.server.deployment.annotation.CompositeIndex compositeIndex, Class<?> annotationClass, Set<org.jboss.jandex.ClassInfo> unsupportedClasses)
     
    protected org.jboss.jandex.ClassInfo
    getClassInfo(org.jboss.jandex.AnnotationInstance annotation)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.jboss.as.server.deployment.DeploymentUnitProcessor

    undeploy
  • Field Details

  • Constructor Details

    • ProcessApplicationProcessor

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