public class ProcessApplicationStartService extends Object implements org.jboss.msc.service.Service<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.
Modifier and Type | Field and Description |
---|---|
protected org.jboss.msc.value.InjectedValue<ProcessEngine> |
defaultProcessEngineInjector
injector for the default process engine
|
protected Collection<org.jboss.msc.service.ServiceName> |
deploymentServiceNames
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> |
noViewProcessApplication |
protected org.jboss.msc.value.InjectedValue<org.jboss.as.ee.component.ComponentView> |
paComponentViewInjector |
protected org.jboss.modules.Module |
paModule |
protected org.jboss.msc.value.InjectedValue<BpmPlatformPlugins> |
platformPluginsInjector |
protected org.jboss.jandex.AnnotationInstance |
postDeployDescription |
protected org.jboss.jandex.AnnotationInstance |
preUndeployDescription |
protected ProcessApplicationInfoImpl |
processApplicationInfo |
protected HashSet<ProcessEngine> |
referencedProcessEngines |
Constructor and Description |
---|
ProcessApplicationStartService(Collection<org.jboss.msc.service.ServiceName> deploymentServiceNames,
org.jboss.jandex.AnnotationInstance postDeployDescription,
org.jboss.jandex.AnnotationInstance preUndeployDescription,
org.jboss.modules.Module paModule) |
Modifier and Type | Method and Description |
---|---|
org.jboss.msc.value.InjectedValue<ProcessEngine> |
getDefaultProcessEngineInjector() |
protected Object[] |
getInjections(Method lifecycleMethod) |
org.jboss.msc.value.InjectedValue<ProcessApplicationInterface> |
getNoViewProcessApplication() |
protected Class<?> |
getPaClass(org.jboss.jandex.AnnotationInstance annotation) |
org.jboss.msc.value.InjectedValue<org.jboss.as.ee.component.ComponentView> |
getPaComponentViewInjector() |
org.jboss.msc.value.InjectedValue<BpmPlatformPlugins> |
getPlatformPluginsInjector() |
ProcessApplicationStartService |
getValue() |
protected void |
invokePostDeploy(ProcessApplicationInterface processApplication) |
protected void |
invokePreUndeploy(ProcessApplicationInterface processApplication) |
protected void |
notifyBpmPlatformPlugins(BpmPlatformPlugins value,
ProcessApplicationInterface processApplication) |
void |
start(org.jboss.msc.service.StartContext context) |
void |
stop(org.jboss.msc.service.StopContext context) |
protected final Collection<org.jboss.msc.service.ServiceName> deploymentServiceNames
protected org.jboss.msc.value.InjectedValue<org.jboss.as.ee.component.ComponentView> paComponentViewInjector
protected org.jboss.msc.value.InjectedValue<ProcessApplicationInterface> noViewProcessApplication
protected org.jboss.msc.value.InjectedValue<ProcessEngine> defaultProcessEngineInjector
protected org.jboss.msc.value.InjectedValue<BpmPlatformPlugins> platformPluginsInjector
protected org.jboss.jandex.AnnotationInstance preUndeployDescription
protected org.jboss.jandex.AnnotationInstance postDeployDescription
protected ProcessApplicationInfoImpl processApplicationInfo
protected HashSet<ProcessEngine> referencedProcessEngines
protected org.jboss.modules.Module paModule
public ProcessApplicationStartService(Collection<org.jboss.msc.service.ServiceName> deploymentServiceNames, org.jboss.jandex.AnnotationInstance postDeployDescription, org.jboss.jandex.AnnotationInstance preUndeployDescription, org.jboss.modules.Module paModule)
public void start(org.jboss.msc.service.StartContext context) throws org.jboss.msc.service.StartException
start
in interface org.jboss.msc.Service
org.jboss.msc.service.StartException
protected void notifyBpmPlatformPlugins(BpmPlatformPlugins value, ProcessApplicationInterface processApplication)
public void stop(org.jboss.msc.service.StopContext context)
stop
in interface org.jboss.msc.Service
protected void invokePostDeploy(ProcessApplicationInterface processApplication) throws ClassNotFoundException, org.jboss.msc.service.StartException
ClassNotFoundException
org.jboss.msc.service.StartException
protected void invokePreUndeploy(ProcessApplicationInterface processApplication) throws ClassNotFoundException
ClassNotFoundException
protected Class<?> getPaClass(org.jboss.jandex.AnnotationInstance annotation) throws ClassNotFoundException
ClassNotFoundException
public org.jboss.msc.value.InjectedValue<ProcessApplicationInterface> getNoViewProcessApplication()
public org.jboss.msc.value.InjectedValue<org.jboss.as.ee.component.ComponentView> getPaComponentViewInjector()
public ProcessApplicationStartService getValue() throws IllegalStateException, IllegalArgumentException
getValue
in interface org.jboss.msc.value.Value<ProcessApplicationStartService>
IllegalStateException
IllegalArgumentException
public org.jboss.msc.value.InjectedValue<ProcessEngine> getDefaultProcessEngineInjector()
public org.jboss.msc.value.InjectedValue<BpmPlatformPlugins> getPlatformPluginsInjector()
Copyright © 2020. All rights reserved.