Interface UnitOfWorkLifecycleCallback<RESOURCE_TYPE>
-
public interface UnitOfWorkLifecycleCallback<RESOURCE_TYPE>Callback that can be registered with aUnitOfWorkin relation to one of more Resources (can e.g. be an Aggregate). When theUnitOfWorkis committed or rolledback theUnitOfWorkLifecycleCallbackwill be called with all the Resources that have been associated with it through theUnitOfWork
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidafterCommit(UnitOfWork unitOfWork, List<RESOURCE_TYPE> associatedResources)voidafterRollback(UnitOfWork unitOfWork, List<RESOURCE_TYPE> associatedResources, Exception causeOfTheRollback)voidbeforeCommit(UnitOfWork unitOfWork, List<RESOURCE_TYPE> associatedResources)voidbeforeRollback(UnitOfWork unitOfWork, List<RESOURCE_TYPE> associatedResources, Exception causeOfTheRollback)
-
-
-
Method Detail
-
beforeCommit
void beforeCommit(UnitOfWork unitOfWork, List<RESOURCE_TYPE> associatedResources)
-
afterCommit
void afterCommit(UnitOfWork unitOfWork, List<RESOURCE_TYPE> associatedResources)
-
beforeRollback
void beforeRollback(UnitOfWork unitOfWork, List<RESOURCE_TYPE> associatedResources, Exception causeOfTheRollback)
-
afterRollback
void afterRollback(UnitOfWork unitOfWork, List<RESOURCE_TYPE> associatedResources, Exception causeOfTheRollback)
-
-