Package org.camunda.bpm.application.impl
Class ProcessApplicationReferenceImpl
java.lang.Object
org.camunda.bpm.application.impl.ProcessApplicationReferenceImpl
- All Implemented Interfaces:
ProcessApplicationReference
A ProcessApplicationReference
implementation using
WeakReference
.
As long as the process application is deployed, the container or the
application will hold a strong reference to the AbstractProcessApplication
object. This class holds a WeakReference
. When the process
application is undeployed, the container or application releases all strong
references. Since we only pass ProcessApplicationReferences
to the process engine, it is guaranteed that
the AbstractProcessApplication
object can be reclaimed by the garbage
collector, even if the undeployment and unregistration should fail for some
improbable reason.
- Author:
- Daniel Meyer
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
protected WeakReference<AbstractProcessApplication>
the weak reference to the process application -
Constructor Summary
ConstructorDescriptionProcessApplicationReferenceImpl
(AbstractProcessApplication processApplication) -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
getName()
Get the process application.void
processEngineStopping
(ProcessEngine processEngine)
-
Field Details
-
processApplication
the weak reference to the process application -
name
-
-
Constructor Details
-
ProcessApplicationReferenceImpl
-
-
Method Details
-
getName
- Specified by:
getName
in interfaceProcessApplicationReference
- Returns:
- the name of the process application
-
getProcessApplication
public AbstractProcessApplication getProcessApplication() throws ProcessApplicationUnavailableExceptionDescription copied from interface:ProcessApplicationReference
Get the process application.- Specified by:
getProcessApplication
in interfaceProcessApplicationReference
- Returns:
- the
AbstractProcessApplication
- Throws:
ProcessApplicationUnavailableException
- if the process application is unavailable
-
processEngineStopping
public void processEngineStopping(ProcessEngine processEngine) throws ProcessApplicationUnavailableException -
clear
public void clear()
-