Class SpringProcessApplication
- java.lang.Object
-
- org.camunda.bpm.application.AbstractProcessApplication
-
- org.camunda.bpm.engine.spring.application.SpringProcessApplication
-
- All Implemented Interfaces:
EventListener,org.camunda.bpm.application.ProcessApplicationInterface,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware,org.springframework.context.ApplicationContextAware,org.springframework.context.ApplicationListener<org.springframework.context.event.ApplicationContextEvent>
- Direct Known Subclasses:
SpringServletProcessApplication
public class SpringProcessApplication extends org.camunda.bpm.application.AbstractProcessApplication implements org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.BeanNameAware, org.springframework.context.ApplicationListener<org.springframework.context.event.ApplicationContextEvent>Process Application implementation to be used in a Spring Application.
This implementation is meant to be bootstrapped by a Spring Application Context. You can either reference the bean in a Spring application-context XML file or use spring annotation-based bootstrapping from a subclass.
HINT: If your application is a Web Application, consider using the
SpringServletProcessApplicationThe SpringProcessApplication will use the Bean Name assigned to the bean in the spring application context (see
BeanNameAware). You should always assign a unique bean name to a process application bean. That is, the bean name must be unique accross all applications deployed to the Camunda Platform.- Author:
- Daniel Meyer
-
-
Field Summary
Fields Modifier and Type Field Description protected org.springframework.context.ApplicationContextapplicationContextprotected StringbeanNameprotected Map<String,String>properties
-
Constructor Summary
Constructors Constructor Description SpringProcessApplication()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()protected StringautodetectProcessApplicationName()voiddestroy()org.springframework.context.ApplicationContextgetApplicationContext()Map<String,String>getProperties()org.camunda.bpm.application.ProcessApplicationReferencegetReference()voidonApplicationEvent(org.springframework.context.event.ApplicationContextEvent event)voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)voidsetBeanName(String name)voidsetProperties(Map<String,String> properties)voidstart()voidstop()-
Methods inherited from class org.camunda.bpm.application.AbstractProcessApplication
createDeployment, deploy, execute, execute, getBeanElResolver, getDefaultDeployToEngineName, getElResolver, getEnvironmentScripts, getExecutionListener, getName, getProcessApplicationClassloader, getProcessApplicationScriptEnvironment, getRawObject, getScriptEngineForName, getTaskListener, getVariableSerializers, initProcessApplicationElResolver, setDefaultDeployToEngineName, setVariableSerializers, undeploy
-
-
-
-
Method Detail
-
autodetectProcessApplicationName
protected String autodetectProcessApplicationName()
- Specified by:
autodetectProcessApplicationNamein classorg.camunda.bpm.application.AbstractProcessApplication
-
getReference
public org.camunda.bpm.application.ProcessApplicationReference getReference()
- Specified by:
getReferencein interfaceorg.camunda.bpm.application.ProcessApplicationInterface
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException- Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-
setBeanName
public void setBeanName(String name)
- Specified by:
setBeanNamein interfaceorg.springframework.beans.factory.BeanNameAware
-
getProperties
public Map<String,String> getProperties()
- Specified by:
getPropertiesin interfaceorg.camunda.bpm.application.ProcessApplicationInterface- Overrides:
getPropertiesin classorg.camunda.bpm.application.AbstractProcessApplication
-
getApplicationContext
public org.springframework.context.ApplicationContext getApplicationContext()
-
onApplicationEvent
public void onApplicationEvent(org.springframework.context.event.ApplicationContextEvent event)
- Specified by:
onApplicationEventin interfaceorg.springframework.context.ApplicationListener<org.springframework.context.event.ApplicationContextEvent>
-
start
public void start()
-
stop
public void stop()
-
-