org.eclipse.ocl.examples.eventmanager.framework
Class ListenerTypeEnum
java.lang.Object
org.eclipse.ocl.examples.eventmanager.framework.ListenerTypeEnum
public class ListenerTypeEnum
- extends java.lang.Object
This class is used to describe the type of a listener. There are 4 supported listener types:
- PreChange listeners are notified before an atomic operation (like a JMI call) is executed. The preChange
listener has the possibility to veto such an action. Side effects are not allowed
- PostChange listeners are notified after an atomic operation (like a JMI call) is executed. The postChange
listener is allowed to perform side effects. Vetoes are not allowed.
- PreCommit listeners are notified after all atomic operations of a Command/Transaction have been
executed successfully and before the Command/Transaction is committed. This type of listener may veto a command, but
side effects to the repositry are not allowed.
- Commit listenres are notified when a command/transaction could be committed successfully. Of
course, no veto is possible at this point of time. Side effects to the repository are allowed, but they will not be
assigned to the current command/transaction.
These types can be combined if a listener wants to implement multiple roles.
- Author:
- Daniel Vocke (d044825)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
preChange
public static final ListenerTypeEnum preChange
postChange
public static final ListenerTypeEnum postChange
preCommit
public static final ListenerTypeEnum preCommit
postCommit
public static final ListenerTypeEnum postCommit
allListenerTypes
public static final java.util.Collection<ListenerTypeEnum> allListenerTypes
ListenerTypeEnum
public ListenerTypeEnum(ListenerTypeEnum... listenerTypes)
matches
public boolean matches(ListenerTypeEnum other)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object