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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
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 existingProcessApplication
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) void
undeploy
(org.jboss.as.server.deployment.DeploymentUnit context)
-
Field Details
-
PRIORITY
public static final int PRIORITY- See Also:
-
-
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 interfaceorg.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 existingProcessApplication
component.- Throws:
org.jboss.as.server.deployment.DeploymentUnitProcessingException
-
getAnnotationsFromSupportedClasses
-
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 interfaceorg.jboss.as.server.deployment.DeploymentUnitProcessor
-