Package org.camunda.bpm.application.impl
Class AbstractServletProcessApplication
- java.lang.Object
-
- org.camunda.bpm.application.AbstractProcessApplication
-
- org.camunda.bpm.application.impl.AbstractServletProcessApplication
-
- All Implemented Interfaces:
ProcessApplicationInterface
- Direct Known Subclasses:
JakartaServletProcessApplication
,ServletProcessApplication
public class AbstractServletProcessApplication extends AbstractProcessApplication
-
-
Field Summary
Fields Modifier and Type Field Description protected ClassLoader
processApplicationClassloader
protected ProcessApplicationReferenceImpl
reference
protected String
servletContextName
protected String
servletContextPath
-
Fields inherited from class org.camunda.bpm.application.AbstractProcessApplication
defaultDeployToEngineName, isDeployed, processApplicationBeanElResolver, processApplicationElResolver, processApplicationScriptEnvironment, variableSerializers
-
-
Constructor Summary
Constructors Constructor Description AbstractServletProcessApplication()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
autodetectProcessApplicationName()
Override this method to autodetect an application name in case theProcessApplication
annotation was used but without parameter.ClassLoader
getProcessApplicationClassloader()
Override this method to provide an environment-specificClassLoader
to be used by the process engine for loading resources from the process applicationMap<String,String>
getProperties()
override this method in order to provide a map of properties.ProcessApplicationReference
getReference()
Returns a globally sharable reference to this process application.-
Methods inherited from class org.camunda.bpm.application.AbstractProcessApplication
createDeployment, deploy, execute, execute, getBeanElResolver, getDefaultDeployToEngineName, getElResolver, getEnvironmentScripts, getExecutionListener, getName, getProcessApplicationScriptEnvironment, getRawObject, getScriptEngineForName, getTaskListener, getVariableSerializers, initProcessApplicationElResolver, setDefaultDeployToEngineName, setVariableSerializers, undeploy
-
-
-
-
Field Detail
-
servletContextName
protected String servletContextName
-
servletContextPath
protected String servletContextPath
-
reference
protected ProcessApplicationReferenceImpl reference
-
processApplicationClassloader
protected ClassLoader processApplicationClassloader
-
-
Method Detail
-
autodetectProcessApplicationName
protected String autodetectProcessApplicationName()
Description copied from class:AbstractProcessApplication
Override this method to autodetect an application name in case theProcessApplication
annotation was used but without parameter.- Specified by:
autodetectProcessApplicationName
in classAbstractProcessApplication
-
getReference
public ProcessApplicationReference getReference()
Description copied from interface:ProcessApplicationInterface
Returns a globally sharable reference to this process application. This reference may be safely passed to the process engine. And other applications.
- Returns:
- a globally sharable reference to this process application.
-
getProcessApplicationClassloader
public ClassLoader getProcessApplicationClassloader()
Description copied from interface:ProcessApplicationInterface
Override this method to provide an environment-specific
ClassLoader
to be used by the process engine for loading resources from the process applicationNOTE: the process engine must never cache any references to this
ClassLoader
or to classes obtained through thisClassLoader
.- Specified by:
getProcessApplicationClassloader
in interfaceProcessApplicationInterface
- Overrides:
getProcessApplicationClassloader
in classAbstractProcessApplication
- Returns:
- the
ClassLoader
that can be used to load classes and resources from this process application.
-
getProperties
public Map<String,String> getProperties()
Description copied from interface:ProcessApplicationInterface
override this method in order to provide a map of properties.
The properties are made available globally through the
ProcessApplicationService
- Specified by:
getProperties
in interfaceProcessApplicationInterface
- Overrides:
getProperties
in classAbstractProcessApplication
- See Also:
ProcessApplicationService
,ProcessApplicationInfo.getProperties()
-
-