Package org.camunda.bpm.application.impl
Class AbstractEjbProcessApplication
- java.lang.Object
-
- org.camunda.bpm.application.AbstractProcessApplication
-
- org.camunda.bpm.application.impl.AbstractEjbProcessApplication
-
- All Implemented Interfaces:
ProcessApplicationInterface
- Direct Known Subclasses:
EjbProcessApplication
,JakartaEjbProcessApplication
public abstract class AbstractEjbProcessApplication extends AbstractProcessApplication
-
-
Field Summary
Fields Modifier and Type Field Description protected static String
EJB_CONTEXT_PATH
protected static String
JAVA_APP_APP_NAME_PATH
protected static String
MODULE_NAME_PATH
protected ProcessApplicationInterface
selfReference
-
Fields inherited from class org.camunda.bpm.application.AbstractProcessApplication
defaultDeployToEngineName, isDeployed, processApplicationBeanElResolver, processApplicationElResolver, processApplicationScriptEnvironment, variableSerializers
-
-
Constructor Summary
Constructors Constructor Description AbstractEjbProcessApplication()
-
Method Summary
All Methods Instance Methods Abstract 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.protected abstract void
ensureEjbProcessApplicationReferenceInitialized()
protected void
ensureInitialized()
<T> T
execute(Callable<T> callable)
The default implementation simply modifies the ContextClassLoader
protected Class<? extends ProcessApplicationInterface>
getBusinessInterface()
allows subclasses to provide a custom business interfaceprotected abstract ProcessApplicationReference
getEjbProcessApplicationReference()
ProcessApplicationReference
getReference()
Returns a globally sharable reference to this process application.protected String
lookupEeApplicationName()
determine the ee application name based on information obtained from JNDI.protected abstract ProcessApplicationInterface
lookupSelfReference()
lookup a proxy object representing the invoked business view of this component.-
Methods inherited from class org.camunda.bpm.application.AbstractProcessApplication
createDeployment, deploy, execute, getBeanElResolver, getDefaultDeployToEngineName, getElResolver, getEnvironmentScripts, getExecutionListener, getName, getProcessApplicationClassloader, getProcessApplicationScriptEnvironment, getProperties, getRawObject, getScriptEngineForName, getTaskListener, getVariableSerializers, initProcessApplicationElResolver, setDefaultDeployToEngineName, setVariableSerializers, undeploy
-
-
-
-
Field Detail
-
MODULE_NAME_PATH
protected static String MODULE_NAME_PATH
-
JAVA_APP_APP_NAME_PATH
protected static String JAVA_APP_APP_NAME_PATH
-
EJB_CONTEXT_PATH
protected static String EJB_CONTEXT_PATH
-
selfReference
protected ProcessApplicationInterface selfReference
-
-
Method Detail
-
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.
-
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
-
getBusinessInterface
protected Class<? extends ProcessApplicationInterface> getBusinessInterface()
allows subclasses to provide a custom business interface
-
execute
public <T> T execute(Callable<T> callable) throws ProcessApplicationExecutionException
Description copied from interface:ProcessApplicationInterface
The default implementation simply modifies the ContextClassLoader
- Specified by:
execute
in interfaceProcessApplicationInterface
- Overrides:
execute
in classAbstractProcessApplication
- Parameters:
callable
- to be executed "within" the context of this process application.- Returns:
- the result of the callback
- Throws:
ProcessApplicationExecutionException
-
ensureInitialized
protected void ensureInitialized()
-
ensureEjbProcessApplicationReferenceInitialized
protected abstract void ensureEjbProcessApplicationReferenceInitialized()
-
getEjbProcessApplicationReference
protected abstract ProcessApplicationReference getEjbProcessApplicationReference()
-
lookupSelfReference
protected abstract ProcessApplicationInterface lookupSelfReference()
lookup a proxy object representing the invoked business view of this component.
-
lookupEeApplicationName
protected String lookupEeApplicationName()
determine the ee application name based on information obtained from JNDI.
-
-