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 SummaryFieldsModifier and TypeFieldDescriptionprotected Stringprotected WeakReference<AbstractProcessApplication>the weak reference to the process application
- 
Constructor SummaryConstructorsConstructorDescriptionProcessApplicationReferenceImpl(AbstractProcessApplication processApplication) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidclear()getName()Get the process application.voidprocessEngineStopping(ProcessEngine processEngine) 
- 
Field Details- 
processApplicationthe weak reference to the process application
- 
name
 
- 
- 
Constructor Details- 
ProcessApplicationReferenceImpl
 
- 
- 
Method Details- 
getName- Specified by:
- getNamein interface- ProcessApplicationReference
- Returns:
- the name of the process application
 
- 
getProcessApplicationpublic AbstractProcessApplication getProcessApplication() throws ProcessApplicationUnavailableExceptionDescription copied from interface:ProcessApplicationReferenceGet the process application.- Specified by:
- getProcessApplicationin interface- ProcessApplicationReference
- Returns:
- the AbstractProcessApplication
- Throws:
- ProcessApplicationUnavailableException- if the process application is unavailable
 
- 
processEngineStoppingpublic void processEngineStopping(ProcessEngine processEngine) throws ProcessApplicationUnavailableException 
- 
clearpublic void clear()
 
-