Class ProcessEngineXmlImpl
- java.lang.Object
-
- org.camunda.bpm.container.impl.metadata.ProcessEngineXmlImpl
-
- All Implemented Interfaces:
ProcessEngineXml
public class ProcessEngineXmlImpl extends Object implements ProcessEngineXml
Implementation of the
ProcessEngineXml
descriptor.- Author:
- Daniel Meyer
-
-
Field Summary
Fields Modifier and Type Field Description protected String
configurationClass
protected String
datasource
protected boolean
isDefault
protected String
jobAcquisitionName
protected String
name
protected List<ProcessEnginePluginXml>
plugins
protected Map<String,String>
properties
-
Constructor Summary
Constructors Constructor Description ProcessEngineXmlImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getConfigurationClass()
String
getDatasource()
String
getJobAcquisitionName()
String
getName()
List<ProcessEnginePluginXml>
getPlugins()
Map<String,String>
getProperties()
boolean
isDefault()
void
setConfigurationClass(String configurationClass)
void
setDatasource(String datasource)
void
setDefault(boolean isDefault)
void
setJobAcquisitionName(String jobAcquisitionName)
void
setName(String name)
void
setPlugins(List<ProcessEnginePluginXml> plugins)
void
setProperties(Map<String,String> properties)
-
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getName
in interfaceProcessEngineXml
- Returns:
- the name of the process engine. Must not be null.
-
setName
public void setName(String name)
-
isDefault
public boolean isDefault()
- Specified by:
isDefault
in interfaceProcessEngineXml
- Returns:
- true if the process engine is the default process engine.
-
setDefault
public void setDefault(boolean isDefault)
-
getConfigurationClass
public String getConfigurationClass()
- Specified by:
getConfigurationClass
in interfaceProcessEngineXml
- Returns:
- the name of the Java Class that is to be used in order to create
the process engine instance. Must be a subclass of
ProcessEngineConfiguration
. If no value is specified,StandaloneProcessEngineConfiguration
is used.
-
setConfigurationClass
public void setConfigurationClass(String configurationClass)
-
getProperties
public Map<String,String> getProperties()
- Specified by:
getProperties
in interfaceProcessEngineXml
- Returns:
- a set of additional properties. The properties are directly set on
the
ProcessEngineConfiguration
class (seeProcessEngineXml.getConfigurationClass()
). This means that each property name used here must be a bean property name on the process engine configuration class and the bean property must be of typeString
,Integer
orBoolean
.
-
getDatasource
public String getDatasource()
- Specified by:
getDatasource
in interfaceProcessEngineXml
- Returns:
- the JNDI Name of the datasource to be used.
-
setDatasource
public void setDatasource(String datasource)
-
getJobAcquisitionName
public String getJobAcquisitionName()
- Specified by:
getJobAcquisitionName
in interfaceProcessEngineXml
- Returns:
- the name of the job acquisition to be used.
-
setJobAcquisitionName
public void setJobAcquisitionName(String jobAcquisitionName)
-
getPlugins
public List<ProcessEnginePluginXml> getPlugins()
- Specified by:
getPlugins
in interfaceProcessEngineXml
- Returns:
- a list of
ProcessEnginePlugin
definitions.
-
setPlugins
public void setPlugins(List<ProcessEnginePluginXml> plugins)
-
-