org.nuxeo.ecm.core.listener
Class TransactedEventServiceImpl
java.lang.Object
org.nuxeo.ecm.core.listener.TransactedEventServiceImpl
- All Implemented Interfaces:
- EventTransactionListener, TransactedEventService
public class TransactedEventServiceImpl
- extends java.lang.Object
- implements TransactedEventService, EventTransactionListener
This class handle the difference between operations (used by apogee) and core events.
When an event is raised within an operation it will be ignored
(since the operation contains all the information about the modifications that were done by the operation).
If there is any active operation then events will be stacked until commit is done.
When in an operation context the operations will be stacked until commit is done. (events are ignored)
Most of the time there will be any one operation stacked (the root one) - this depends on whether child
operation notifications are blocked or not. See Operation.BLOCK_CHILD_NOTIFICATIONS
- Author:
- Bogdan Stefanescu
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TransactedEventServiceImpl
public TransactedEventServiceImpl()
addListener
public void addListener(TransactedListener listener)
- Specified by:
addListener
in interface TransactedEventService
removeListener
public void removeListener(TransactedListener listener)
- Specified by:
removeListener
in interface TransactedEventService
record
public void record(java.lang.Object event)
- Specified by:
record
in interface TransactedEventService
recordEvent
public void recordEvent(CoreEvent event)
- Specified by:
recordEvent
in interface TransactedEventService
recordOperation
public void recordOperation(Operation<?> event)
- Specified by:
recordOperation
in interface TransactedEventService
transactionStarted
public void transactionStarted()
- Specified by:
transactionStarted
in interface EventTransactionListener
- Specified by:
transactionStarted
in interface TransactedEventService
transactionCommitted
public void transactionCommitted()
- Specified by:
transactionCommitted
in interface EventTransactionListener
- Specified by:
transactionCommitted
in interface TransactedEventService
transactionRollbacked
public void transactionRollbacked()
- Specified by:
transactionRollbacked
in interface EventTransactionListener
- Specified by:
transactionRollbacked
in interface TransactedEventService
Copyright © 2010 Nuxeo SAS. All Rights Reserved.