Class ProcessApplicationDeploymentService
- java.lang.Object
-
- org.camunda.bpm.container.impl.jboss.service.ProcessApplicationDeploymentService
-
- All Implemented Interfaces:
org.jboss.msc.Service
,org.jboss.msc.service.Service<ProcessApplicationDeploymentService>
,org.jboss.msc.value.Value<ProcessApplicationDeploymentService>
public class ProcessApplicationDeploymentService extends java.lang.Object implements org.jboss.msc.service.Service<ProcessApplicationDeploymentService>
Service responsible for performing a deployment to the process engine and managing the resulting
ProcessApplicationRegistration
with the process engine.We construct one of these per Process Archive of a Process Application.
We need a dependency on the componentView service of the ProcessApplication component and the process engine to which the deployment should be performed.
- Author:
- Daniel Meyer
-
-
Field Summary
Fields Modifier and Type Field Description protected ProcessApplicationDeployment
deployment
the deployment we create hereprotected java.util.Map<java.lang.String,byte[]>
deploymentMap
the map of deployment resources obtained through scanningprotected org.jboss.msc.value.InjectedValue<java.util.concurrent.ExecutorService>
executorInjector
protected org.jboss.modules.Module
module
protected org.jboss.msc.value.InjectedValue<ProcessApplicationInterface>
noViewProcessApplication
protected org.jboss.msc.value.InjectedValue<org.jboss.as.ee.component.ComponentView>
paComponentViewInjector
protected ProcessArchiveXml
processArchive
deployment metadata that is passed inprotected org.jboss.msc.value.InjectedValue<ProcessEngine>
processEngineInjector
-
Constructor Summary
Constructors Constructor Description ProcessApplicationDeploymentService(java.util.Map<java.lang.String,byte[]> deploymentMap, ProcessArchiveXml processArchive, org.jboss.modules.Module module)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
enableResumingOfPreviousVersions(ProcessApplicationDeploymentBuilder deploymentBuilder)
ProcessApplicationDeployment
getDeployment()
org.jboss.msc.value.InjectedValue<java.util.concurrent.ExecutorService>
getExecutorInjector()
org.jboss.msc.value.InjectedValue<ProcessApplicationInterface>
getNoViewProcessApplication()
org.jboss.msc.value.InjectedValue<org.jboss.as.ee.component.ComponentView>
getPaComponentViewInjector()
org.jboss.msc.value.InjectedValue<ProcessEngine>
getProcessEngineInjector()
java.lang.String
getProcessEngineName()
ProcessApplicationDeploymentService
getValue()
protected boolean
isValidValueForResumePreviousBy(java.lang.String resumePreviousBy)
protected void
logDeploymentSummary(java.util.Collection<java.lang.String> resourceNames, java.lang.String deploymentName, java.lang.String processApplicationName)
protected void
performDeployment()
protected void
performUndeployment()
void
start(org.jboss.msc.service.StartContext context)
void
stop(org.jboss.msc.service.StopContext context)
-
-
-
Field Detail
-
executorInjector
protected org.jboss.msc.value.InjectedValue<java.util.concurrent.ExecutorService> executorInjector
-
processEngineInjector
protected org.jboss.msc.value.InjectedValue<ProcessEngine> processEngineInjector
-
noViewProcessApplication
protected org.jboss.msc.value.InjectedValue<ProcessApplicationInterface> noViewProcessApplication
-
paComponentViewInjector
protected org.jboss.msc.value.InjectedValue<org.jboss.as.ee.component.ComponentView> paComponentViewInjector
-
deploymentMap
protected final java.util.Map<java.lang.String,byte[]> deploymentMap
the map of deployment resources obtained through scanning
-
processArchive
protected final ProcessArchiveXml processArchive
deployment metadata that is passed in
-
deployment
protected ProcessApplicationDeployment deployment
the deployment we create here
-
module
protected org.jboss.modules.Module module
-
-
Constructor Detail
-
ProcessApplicationDeploymentService
public ProcessApplicationDeploymentService(java.util.Map<java.lang.String,byte[]> deploymentMap, ProcessArchiveXml processArchive, org.jboss.modules.Module module)
-
-
Method Detail
-
start
public void start(org.jboss.msc.service.StartContext context) throws org.jboss.msc.service.StartException
- Specified by:
start
in interfaceorg.jboss.msc.Service
- Specified by:
start
in interfaceorg.jboss.msc.service.Service<ProcessApplicationDeploymentService>
- Throws:
org.jboss.msc.service.StartException
-
stop
public void stop(org.jboss.msc.service.StopContext context)
- Specified by:
stop
in interfaceorg.jboss.msc.Service
- Specified by:
stop
in interfaceorg.jboss.msc.service.Service<ProcessApplicationDeploymentService>
-
performDeployment
protected void performDeployment() throws org.jboss.msc.service.StartException
- Throws:
org.jboss.msc.service.StartException
-
enableResumingOfPreviousVersions
protected void enableResumingOfPreviousVersions(ProcessApplicationDeploymentBuilder deploymentBuilder) throws java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalArgumentException
-
isValidValueForResumePreviousBy
protected boolean isValidValueForResumePreviousBy(java.lang.String resumePreviousBy)
-
logDeploymentSummary
protected void logDeploymentSummary(java.util.Collection<java.lang.String> resourceNames, java.lang.String deploymentName, java.lang.String processApplicationName)
- Parameters:
deploymentMap2
-deploymentName
-
-
performUndeployment
protected void performUndeployment()
-
getValue
public ProcessApplicationDeploymentService getValue() throws java.lang.IllegalStateException, java.lang.IllegalArgumentException
- Specified by:
getValue
in interfaceorg.jboss.msc.value.Value<ProcessApplicationDeploymentService>
- Throws:
java.lang.IllegalStateException
java.lang.IllegalArgumentException
-
getProcessEngineInjector
public org.jboss.msc.value.InjectedValue<ProcessEngine> getProcessEngineInjector()
-
getNoViewProcessApplication
public org.jboss.msc.value.InjectedValue<ProcessApplicationInterface> getNoViewProcessApplication()
-
getPaComponentViewInjector
public org.jboss.msc.value.InjectedValue<org.jboss.as.ee.component.ComponentView> getPaComponentViewInjector()
-
getDeployment
public ProcessApplicationDeployment getDeployment()
-
getProcessEngineName
public java.lang.String getProcessEngineName()
-
getExecutorInjector
public org.jboss.msc.value.InjectedValue<java.util.concurrent.ExecutorService> getExecutorInjector()
-
-