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 StringEJB_CONTEXT_PATHprotected static StringJAVA_APP_APP_NAME_PATHprotected static 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 StringautodetectProcessApplicationName()Override this method to autodetect an application name in case theProcessApplicationannotation was used but without parameter.protected abstract voidensureEjbProcessApplicationReferenceInitialized()protected voidensureInitialized()<T> Texecute(Callable<T> callable)The default implementation simply modifies the ContextClassLoaderprotected 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 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 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: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 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 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: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 String lookupEeApplicationName()
determine the ee application name based on information obtained from JNDI.
-
-