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 ClassLoaderprocessApplicationClassloaderprotected ProcessApplicationReferenceImplreferenceprotected StringservletContextNameprotected StringservletContextPath-
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 StringautodetectProcessApplicationName()Override this method to autodetect an application name in case theProcessApplicationannotation was used but without parameter.ClassLoadergetProcessApplicationClassloader()Override this method to provide an environment-specificClassLoaderto 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.ProcessApplicationReferencegetReference()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:AbstractProcessApplicationOverride this method to autodetect an application name in case theProcessApplicationannotation was used but without parameter.- Specified by:
autodetectProcessApplicationNamein classAbstractProcessApplication
-
getReference
public ProcessApplicationReference getReference()
Description copied from interface:ProcessApplicationInterfaceReturns 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:ProcessApplicationInterfaceOverride this method to provide an environment-specific
ClassLoaderto be used by the process engine for loading resources from the process applicationNOTE: the process engine must never cache any references to this
ClassLoaderor to classes obtained through thisClassLoader.- Specified by:
getProcessApplicationClassloaderin interfaceProcessApplicationInterface- Overrides:
getProcessApplicationClassloaderin classAbstractProcessApplication- Returns:
- the
ClassLoaderthat can be used to load classes and resources from this process application.
-
getProperties
public Map<String,String> getProperties()
Description copied from interface:ProcessApplicationInterfaceoverride this method in order to provide a map of properties.
The properties are made available globally through the
ProcessApplicationService- Specified by:
getPropertiesin interfaceProcessApplicationInterface- Overrides:
getPropertiesin classAbstractProcessApplication- See Also:
ProcessApplicationService,ProcessApplicationInfo.getProperties()
-
-