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 java.lang.StringEJB_CONTEXT_PATHprotected static java.lang.StringJAVA_APP_APP_NAME_PATHprotected static java.lang.StringMODULE_NAME_PATHprotected ProcessApplicationInterfaceselfReference-
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 java.lang.StringautodetectProcessApplicationName()Override this method to autodetect an application name in case theProcessApplicationannotation was used but without parameter.protected abstract voidensureEjbProcessApplicationReferenceInitialized()protected voidensureInitialized()<T> Texecute(java.util.concurrent.Callable<T> callable)The default implementation simply modifies the ContextClassLoaderprotected java.lang.Class<? extends ProcessApplicationInterface>getBusinessInterface()allows subclasses to provide a custom business interfaceprotected abstract ProcessApplicationReferencegetEjbProcessApplicationReference()ProcessApplicationReferencegetReference()Returns a globally sharable reference to this process application.protected java.lang.StringlookupEeApplicationName()determine the ee application name based on information obtained from JNDI.protected abstract ProcessApplicationInterfacelookupSelfReference()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 java.lang.String MODULE_NAME_PATH
-
JAVA_APP_APP_NAME_PATH
protected static java.lang.String JAVA_APP_APP_NAME_PATH
-
EJB_CONTEXT_PATH
protected static java.lang.String EJB_CONTEXT_PATH
-
selfReference
protected ProcessApplicationInterface selfReference
-
-
Method Detail
-
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.
-
autodetectProcessApplicationName
protected java.lang.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
-
getBusinessInterface
protected java.lang.Class<? extends ProcessApplicationInterface> getBusinessInterface()
allows subclasses to provide a custom business interface
-
execute
public <T> T execute(java.util.concurrent.Callable<T> callable) throws ProcessApplicationExecutionExceptionDescription copied from interface:ProcessApplicationInterfaceThe default implementation simply modifies the ContextClassLoader- Specified by:
executein interfaceProcessApplicationInterface- Overrides:
executein 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 java.lang.String lookupEeApplicationName()
determine the ee application name based on information obtained from JNDI.
-
-