Package org.camunda.bpm.application
Annotation Type PreUndeploy
-
@Target(METHOD) @Retention(RUNTIME) public @interface PreUndeploy
Annotation that can be placed on a method of a
ProcessApplication
class.The method will be invoked before the process application is undeployed.
LIMITATION: the annotation must be placed on a method of the same class carrying the
@ProcessApplication
annotation. Methods of superclasses are not detected.NOTE: A process application class must only define a single
@PostDeploy
Method.NOTE: if the @PostDeploy method throws an exception, the exception is logged but the container will still undeploy the application.
Basic Usage example:
@ProcessApplication("My Process Application") public class MyProcessApplication extends ServletProcessApplication { @PreUndeploy public void cleanup(ProcessEngine processEngine) { ... } }
A method annotated with
@PreUndeploy
may additionally take the following set of parameters, in any oder:ProcessApplicationInfo
: theProcessApplicationInfo
object for this process application is injectedProcessEngine
the default process engine is injectedList<ProcessEngine>
all process engines to which this process application has performed deployments are injected.
- Author:
- Daniel Meyer
- See Also:
PostDeploy