Interface SHandler<T extends SEvent>
-
- All Superinterfaces:
java.io.Serializable
- All Known Subinterfaces:
SProcessInstanceHandler<T>
- All Known Implementing Classes:
AbstractJMSUpdateHandler,AbstractUpdateHandler,ArchiveProcessInstancesHandler,FlowNodeHandler,FlowNodeReachStateHandler,GatewayHandler,ProcessInstanceFinishedHandler,ProcessInstanceHandler,TaskReadyHandler
public interface SHandler<T extends SEvent> extends java.io.Serializable- Author:
- Christophe Havard, Matthieu Chaffotte
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidexecute(T event)Performs the action corresponding to the given Eventjava.lang.StringgetIdentifier()Returns a unique identifier for each instance of the HandlerbooleanisInterested(T event)Precise if the current Handler is interested by the given event.
-
-
-
Method Detail
-
execute
void execute(T event) throws SHandlerExecutionException
Performs the action corresponding to the given Event- Throws:
SHandlerExecutionException
-
isInterested
boolean isInterested(T event)
Precise if the current Handler is interested by the given event. If so, it could run the execute(SEvent e) method.
-
getIdentifier
java.lang.String getIdentifier()
Returns a unique identifier for each instance of the Handler
-
-