org.camunda.bpm.engine.spring.application
Class SpringProcessApplication
java.lang.Object
org.camunda.bpm.application.AbstractProcessApplication
org.camunda.bpm.engine.spring.application.SpringProcessApplication
- All Implemented Interfaces:
- ProcessApplicationInterface, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware
- Direct Known Subclasses:
- SpringServletProcessApplication
public class SpringProcessApplication
- extends AbstractProcessApplication
- implements org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.BeanNameAware
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
SpringServletProcessApplication
The 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 BPM platform.
- Author:
- Daniel Meyer
| Methods inherited from class org.camunda.bpm.application.AbstractProcessApplication |
createDeployment, deploy, execute, getBeanElResolver, getElResolver, getExecutionListener, getName, getProcessApplicationClassloader, getRawObject, getTaskListener, initProcessApplicationElResolver, undeploy |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
properties
protected Map<String,String> properties
applicationContext
protected org.springframework.context.ApplicationContext applicationContext
SpringProcessApplication
public SpringProcessApplication()
autodetectProcessApplicationName
protected String autodetectProcessApplicationName()
- Specified by:
autodetectProcessApplicationName in class AbstractProcessApplication
getReference
public ProcessApplicationReference getReference()
- Specified by:
getReference in interface ProcessApplicationInterface
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
- Specified by:
setApplicationContext in interface org.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
afterPropertiesSet
public void afterPropertiesSet()
throws Exception
- Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
- Throws:
Exception
destroy
public void destroy()
throws Exception
- Specified by:
destroy in interface org.springframework.beans.factory.DisposableBean
- Throws:
Exception
setBeanName
public void setBeanName(String name)
- Specified by:
setBeanName in interface org.springframework.beans.factory.BeanNameAware
getProperties
public Map<String,String> getProperties()
- Specified by:
getProperties in interface ProcessApplicationInterface- Overrides:
getProperties in class AbstractProcessApplication
setProperties
public void setProperties(Map<String,String> properties)
getApplicationContext
public org.springframework.context.ApplicationContext getApplicationContext()
Copyright © 2015 camunda services GmbH. All rights reserved.