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 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
FieldsModifier and TypeFieldDescriptionprotected ProcessApplicationDeploymentthe deployment we create herethe map of deployment resources obtained through scanningprotected org.jboss.msc.value.InjectedValue<ExecutorService>protected org.jboss.modules.Moduleprotected org.jboss.msc.value.InjectedValue<ProcessApplicationInterface>protected org.jboss.msc.value.InjectedValue<org.jboss.as.ee.component.ComponentView>protected final ProcessArchiveXmldeployment metadata that is passed inprotected org.jboss.msc.value.InjectedValue<ProcessEngine>Fields inherited from interface org.jboss.msc.service.Service
NULL -
Constructor Summary
ConstructorsConstructorDescriptionProcessApplicationDeploymentService(Map<String, byte[]> deploymentMap, ProcessArchiveXml processArchive, org.jboss.modules.Module module) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidenableResumingOfPreviousVersions(ProcessApplicationDeploymentBuilder deploymentBuilder) org.jboss.msc.value.InjectedValue<ExecutorService>org.jboss.msc.value.InjectedValue<ProcessApplicationInterface>org.jboss.msc.value.InjectedValue<org.jboss.as.ee.component.ComponentView>org.jboss.msc.value.InjectedValue<ProcessEngine>getValue()protected booleanisValidValueForResumePreviousBy(String resumePreviousBy) protected voidlogDeploymentSummary(Collection<String> resourceNames, String deploymentName, String processApplicationName) protected voidprotected voidvoidstart(org.jboss.msc.service.StartContext context) voidstop(org.jboss.msc.service.StopContext context)
-
Field Details
-
executorInjector
-
processEngineInjector
-
noViewProcessApplication
-
paComponentViewInjector
protected org.jboss.msc.value.InjectedValue<org.jboss.as.ee.component.ComponentView> paComponentViewInjector -
deploymentMap
the map of deployment resources obtained through scanning -
processArchive
deployment metadata that is passed in -
deployment
the deployment we create here -
module
protected org.jboss.modules.Module module
-
-
Constructor Details
-
ProcessApplicationDeploymentService
public ProcessApplicationDeploymentService(Map<String, byte[]> deploymentMap, ProcessArchiveXml processArchive, org.jboss.modules.Module module)
-
-
Method Details
-
start
public void start(org.jboss.msc.service.StartContext context) throws org.jboss.msc.service.StartException - Specified by:
startin interfaceorg.jboss.msc.Service- Throws:
org.jboss.msc.service.StartException
-
stop
public void stop(org.jboss.msc.service.StopContext context) - Specified by:
stopin interfaceorg.jboss.msc.Service
-
performDeployment
protected void performDeployment() throws org.jboss.msc.service.StartException- Throws:
org.jboss.msc.service.StartException
-
enableResumingOfPreviousVersions
protected void enableResumingOfPreviousVersions(ProcessApplicationDeploymentBuilder deploymentBuilder) throws IllegalArgumentException - Throws:
IllegalArgumentException
-
isValidValueForResumePreviousBy
-
logDeploymentSummary
protected void logDeploymentSummary(Collection<String> resourceNames, String deploymentName, String processApplicationName) - Parameters:
deploymentMap2-deploymentName-
-
performUndeployment
protected void performUndeployment() -
getValue
public ProcessApplicationDeploymentService getValue() throws IllegalStateException, IllegalArgumentException- Specified by:
getValuein interfaceorg.jboss.msc.value.Value<ProcessApplicationDeploymentService>- Throws:
IllegalStateExceptionIllegalArgumentException
-
getProcessEngineInjector
-
getNoViewProcessApplication
-
getPaComponentViewInjector
public org.jboss.msc.value.InjectedValue<org.jboss.as.ee.component.ComponentView> getPaComponentViewInjector() -
getDeployment
-
getProcessEngineName
-
getExecutorInjector
-