public class ListenerTypeEnum
- extends java.lang.Object
This class is used to describe the type of a listener. There are 4 supported listener types:
These types can be combined if a listener wants to implement multiple roles.
- 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.
- Daniel Vocke (d044825)
|Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static final ListenerTypeEnum preChange
public static final ListenerTypeEnum postChange
public static final ListenerTypeEnum preCommit
public static final ListenerTypeEnum postCommit
public static final java.util.Collection<ListenerTypeEnum> allListenerTypes
public ListenerTypeEnum(ListenerTypeEnum... listenerTypes)
public boolean matches(ListenerTypeEnum other)
public java.lang.String toString()
toString in class