de.cau.cs.kieler.synccharts.listener
Class FireOnceTriggerListener
java.lang.Object
org.eclipse.emf.transaction.ResourceSetListenerImpl
org.eclipse.emf.transaction.TriggerListener
de.cau.cs.kieler.synccharts.listener.FailSafeTriggerListener
de.cau.cs.kieler.synccharts.listener.FireOnceTriggerListener
- All Implemented Interfaces:
- EventListener, ResourceSetListener, ResourceSetListener.Internal
- Direct Known Subclasses:
- ChangedTriggerListener, NoteSynchronizationTriggerListener, RenamedSignalsListener, SerializerListener, TriggerListenerChoice, TriggerListenerIDs, TriggerListenerPriorities, TriggerListenerRecursiveAdd
public abstract class FireOnceTriggerListener
- extends FailSafeTriggerListener
A TriggerListener that executes the trigger only once for a given
transaction. That is, it will not call the trigger again, if the trigger
itself has caused some changes that lead to new notifications. This avoids
the usual notification loops.
- Rating

Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
transaction
protected Transaction transaction
FireOnceTriggerListener
public FireOnceTriggerListener(NotificationFilter filter)
FireOnceTriggerListener
public FireOnceTriggerListener()
transactionAboutToCommit
public Command transactionAboutToCommit(ResourceSetChangeEvent event)
throws RollbackException
- Setting the Transaction in the event to null will also trigger this listener
no matter what.
- Specified by:
transactionAboutToCommit
in interface ResourceSetListener
- Overrides:
transactionAboutToCommit
in class FailSafeTriggerListener
- Throws:
RollbackException