|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.axonframework.unitofwork.UnitOfWorkListenerAdapter
public abstract class UnitOfWorkListenerAdapter
Abstract implementation of the UnitOfWorkListener that provides empty implementation of all methods declared
in UnitOfWorkListener. This implementation does nothing.
| Constructor Summary | |
|---|---|
UnitOfWorkListenerAdapter()
|
|
| Method Summary | |
|---|---|
void |
afterCommit()
Invoked when the UnitOfWork is committed. |
void |
onCleanup()
Notifies listeners that the UnitOfWork is being cleaned up. |
void |
onPrepareCommit(Set<AggregateRoot> aggregateRoots,
List<Event> events)
Invoked before aggregates are committed, and before any events are published. |
void |
onRollback(Throwable failureCause)
Invoked when the UnitOfWork is rolled back. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UnitOfWorkListenerAdapter()
| Method Detail |
|---|
public void onPrepareCommit(Set<AggregateRoot> aggregateRoots,
List<Event> events)
events may not contain the uncommitted domain events of each of the
aggregateRoots. To retrieve all events, collect all uncommitted events from the aggregate roots and
combine them with the list of events.
onPrepareCommit in interface UnitOfWorkListeneraggregateRoots - the aggregate roots being committedevents - Events that have been registered for dispatching with the UnitOfWorkpublic void afterCommit()
UnitOfWorkListener.onRollback(Throwable) consecutively.
afterCommit in interface UnitOfWorkListenerUnitOfWork.commit()public void onRollback(Throwable failureCause)
onRollback in interface UnitOfWorkListenerfailureCause - UnitOfWork.rollback(Throwable)public void onCleanup()
onCleanup in interface UnitOfWorkListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||