public class TestTransactedListener extends AbstractEventListener implements PostCommitListener, OnSaveListener, PreCommitListener
Constructor and Description |
---|
TestTransactedListener() |
Modifier and Type | Method and Description |
---|---|
void |
aboutToCommit(CoreEvent[] events)
Current transaction is about to commit.
|
void |
aboutToCommit(Operation<?>[] events)
Current transaction is about to commit.
|
void |
onCommit(CoreEvent[] events)
Current transaction was committed.
|
void |
onCommit(Operation<?>[] events)
Current transaction was committed.
|
void |
onSave(CoreEvent[] events)
Notify Last save in current transaction.
|
void |
onSave(Operation<?>[] events)
Notify Last save in current transaction.
|
accepts, addEventId, getName, getOrder, handleEvent, notifyEvent, operationStarted, operationTerminated, removeEventId, setName, setOrder
public void onCommit(CoreEvent[] events)
PostCommitListener
This method should be used by listeners using the CoreEvent model and ignored by the one using Operation events.
onCommit
in interface PostCommitListener
events
- all core events collected in current transaction.public void onCommit(Operation<?>[] events)
PostCommitListener
This method should be used by listeners using the Operation events and ignored by the one using CoreEvent events.
onCommit
in interface PostCommitListener
events
- all operation events collected in current transactionpublic void onSave(CoreEvent[] events)
OnSaveListener
This method should be used by listeners using the CoreEvent model and ignored by the one using Operation events.
onSave
in interface OnSaveListener
events
- all core events collected in current transaction.public void onSave(Operation<?>[] events)
OnSaveListener
This method should be used by listeners using the Operation events and ignored by the one using CoreEvent events.
onSave
in interface OnSaveListener
events
- all operation events collected in current transactionpublic void aboutToCommit(CoreEvent[] events)
PreCommitListener
This method should be used by listeners using the CoreEvent model and ignored by the one using Operation events.
aboutToCommit
in interface PreCommitListener
events
- all core events collected in current transaction.public void aboutToCommit(Operation<?>[] events)
PreCommitListener
This method should be used by listeners using the Operation events and ignored by the one using CoreEvent events.
aboutToCommit
in interface PreCommitListener
events
- all operation events collected in current transactionCopyright © 2011 Nuxeo SA. All Rights Reserved.