Package org.camunda.bpm.container
Interface RuntimeContainerDelegate
-
- All Known Implementing Classes:
MscRuntimeContainerDelegate
,RuntimeContainerDelegateImpl
public interface RuntimeContainerDelegate
The
RuntimeContainerDelegate
in an SPI that allows the process engine to integrate with the runtime container in which it is deployed. Examples of "runtime containers" are- JBoss AS 7 (Module Service Container),
- The JMX Container,
- An OSGi Runtime,
- ...
The current
RuntimeContainerDelegate
can be obtained through the staticINSTANCE
field.- Author:
- Daniel Meyer
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
RuntimeContainerDelegate.RuntimeContainerDelegateInstance
Holder of the currentRuntimeContainerDelegate
instance.
-
Field Summary
Fields Modifier and Type Field Description static RuntimeContainerDelegate.RuntimeContainerDelegateInstance
INSTANCE
Holds the currentRuntimeContainerDelegate
instance
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
deployProcessApplication(AbstractProcessApplication processApplication)
Deploy aAbstractProcessApplication
into the runtime container.ProcessApplicationReference
getDeployedProcessApplication(String name)
ExecutorService
getExecutorService()
ProcessApplicationService
getProcessApplicationService()
ProcessEngineService
getProcessEngineService()
void
registerProcessEngine(ProcessEngine processEngine)
Adds a managedProcessEngine
to the runtime container.void
undeployProcessApplication(AbstractProcessApplication processApplication)
Undeploy aAbstractProcessApplication
from the runtime container.void
unregisterProcessEngine(ProcessEngine processEngine)
Unregisters a managedProcessEngine
instance from the Runtime Container.
-
-
-
Field Detail
-
INSTANCE
static final RuntimeContainerDelegate.RuntimeContainerDelegateInstance INSTANCE
Holds the currentRuntimeContainerDelegate
instance
-
-
Method Detail
-
registerProcessEngine
void registerProcessEngine(ProcessEngine processEngine)
Adds a managed
ProcessEngine
to the runtime container.Process Engines registered through this method are returned by the
ProcessEngineService
.
-
unregisterProcessEngine
void unregisterProcessEngine(ProcessEngine processEngine)
Unregisters a managed
ProcessEngine
instance from the Runtime Container.
-
deployProcessApplication
void deployProcessApplication(AbstractProcessApplication processApplication)
Deploy aAbstractProcessApplication
into the runtime container.
-
undeployProcessApplication
void undeployProcessApplication(AbstractProcessApplication processApplication)
Undeploy aAbstractProcessApplication
from the runtime container.
-
getProcessEngineService
ProcessEngineService getProcessEngineService()
- Returns:
- the Container's
ProcessEngineService
implementation.
-
getProcessApplicationService
ProcessApplicationService getProcessApplicationService()
- Returns:
- the Container's
ProcessApplicationService
implementation
-
getExecutorService
ExecutorService getExecutorService()
- Returns:
- the Runtime Container's
ExecutorService
implementation
-
getDeployedProcessApplication
ProcessApplicationReference getDeployedProcessApplication(String name)
- Returns:
- a reference to the process application with the given name if deployed; null otherwise
-
-