Class ProcessApplicationStartService
- All Implemented Interfaces:
- org.jboss.msc.Service,- org.jboss.msc.service.Service<ProcessApplicationStartService>,- org.jboss.msc.value.Value<ProcessApplicationStartService>
This service is responsible for starting the MscManagedProcessApplication service.
We need this as an extra step since we need a declarative dependency on the
 ProcessApplicationComponent in order to call the getName() method on the ProcessApplication.
 The name of the process application is subsequently used for composing the name of the
 MscManagedProcessApplication service which means that it must be available when
 registering the service.
This service depends on all ProcessApplicationDeploymentService instances started for the
 process application. Thus, when this service is started, it is guaranteed that all process application
 deployments have completed successfully.
This service creates the ProcessApplicationInfo object and passes it to the
 MscManagedProcessApplication service.
- Author:
- Daniel Meyer
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected org.jboss.msc.value.InjectedValue<ProcessEngine>injector for the default process engineprotected final Collection<org.jboss.msc.service.ServiceName>the names of the deployment services we depend on; those must be added as declarative dependencies when the service is installed.protected org.jboss.msc.value.InjectedValue<ProcessApplicationInterface>protected org.jboss.msc.value.InjectedValue<org.jboss.as.ee.component.ComponentView>protected org.jboss.modules.Moduleprotected org.jboss.msc.value.InjectedValue<BpmPlatformPlugins>protected org.jboss.jandex.AnnotationInstanceprotected org.jboss.jandex.AnnotationInstanceprotected ProcessApplicationInfoImplprotected HashSet<ProcessEngine>Fields inherited from interface org.jboss.msc.service.ServiceNULL
- 
Constructor SummaryConstructorsConstructorDescriptionProcessApplicationStartService(Collection<org.jboss.msc.service.ServiceName> deploymentServiceNames, org.jboss.jandex.AnnotationInstance postDeployDescription, org.jboss.jandex.AnnotationInstance preUndeployDescription, org.jboss.modules.Module paModule) 
- 
Method SummaryModifier and TypeMethodDescriptionorg.jboss.msc.value.InjectedValue<ProcessEngine>protected Object[]getInjections(Method lifecycleMethod) org.jboss.msc.value.InjectedValue<ProcessApplicationInterface>protected Class<?>getPaClass(org.jboss.jandex.AnnotationInstance annotation) org.jboss.msc.value.InjectedValue<org.jboss.as.ee.component.ComponentView>org.jboss.msc.value.InjectedValue<BpmPlatformPlugins>getValue()protected voidinvokePostDeploy(ProcessApplicationInterface processApplication) protected voidinvokePreUndeploy(ProcessApplicationInterface processApplication) protected voidnotifyBpmPlatformPlugins(BpmPlatformPlugins value, ProcessApplicationInterface processApplication) voidstart(org.jboss.msc.service.StartContext context) voidstop(org.jboss.msc.service.StopContext context) 
- 
Field Details- 
deploymentServiceNamesthe names of the deployment services we depend on; those must be added as declarative dependencies when the service is installed.
- 
paComponentViewInjectorprotected org.jboss.msc.value.InjectedValue<org.jboss.as.ee.component.ComponentView> paComponentViewInjector
- 
noViewProcessApplication
- 
defaultProcessEngineInjectorinjector for the default process engine
- 
platformPluginsInjector
- 
preUndeployDescriptionprotected org.jboss.jandex.AnnotationInstance preUndeployDescription
- 
postDeployDescriptionprotected org.jboss.jandex.AnnotationInstance postDeployDescription
- 
processApplicationInfo
- 
referencedProcessEngines
- 
paModuleprotected org.jboss.modules.Module paModule
 
- 
- 
Constructor Details- 
ProcessApplicationStartServicepublic ProcessApplicationStartService(Collection<org.jboss.msc.service.ServiceName> deploymentServiceNames, org.jboss.jandex.AnnotationInstance postDeployDescription, org.jboss.jandex.AnnotationInstance preUndeployDescription, org.jboss.modules.Module paModule) 
 
- 
- 
Method Details- 
startpublic void start(org.jboss.msc.service.StartContext context) throws org.jboss.msc.service.StartException - Specified by:
- startin interface- org.jboss.msc.Service
- Throws:
- org.jboss.msc.service.StartException
 
- 
notifyBpmPlatformPluginsprotected void notifyBpmPlatformPlugins(BpmPlatformPlugins value, ProcessApplicationInterface processApplication) 
- 
stoppublic void stop(org.jboss.msc.service.StopContext context) - Specified by:
- stopin interface- org.jboss.msc.Service
 
- 
invokePostDeployprotected void invokePostDeploy(ProcessApplicationInterface processApplication) throws ClassNotFoundException, org.jboss.msc.service.StartException - Throws:
- ClassNotFoundException
- org.jboss.msc.service.StartException
 
- 
invokePreUndeployprotected void invokePreUndeploy(ProcessApplicationInterface processApplication) throws ClassNotFoundException - Throws:
- ClassNotFoundException
 
- 
getInjections
- 
getPaClassprotected Class<?> getPaClass(org.jboss.jandex.AnnotationInstance annotation) throws ClassNotFoundException - Throws:
- ClassNotFoundException
 
- 
getNoViewProcessApplication
- 
getPaComponentViewInjectorpublic org.jboss.msc.value.InjectedValue<org.jboss.as.ee.component.ComponentView> getPaComponentViewInjector()
- 
getValuepublic ProcessApplicationStartService getValue() throws IllegalStateException, IllegalArgumentException- Specified by:
- getValuein interface- org.jboss.msc.value.Value<ProcessApplicationStartService>
- Throws:
- IllegalStateException
- IllegalArgumentException
 
- 
getDefaultProcessEngineInjector
- 
getPlatformPluginsInjector
 
-