public interface UnitOfWorkManager
Manager that controls and give access to UnitOfWork.
Main entry point for application usage to gain control about the execution
and grouping of work.
-
Method Summary
Modifier and TypeMethodDescriptionReturns current unit of work for this execution context (usually thread).Returns instance of the event manager configured for this unit of work managerReturns new not started UnitOfWork that is associated with the manager to manage it's life cycle.
-
Method Details
-
currentUnitOfWork
UnitOfWork currentUnitOfWork()Returns current unit of work for this execution context (usually thread).- Returns:
- current unit of work
-
newUnitOfWork
UnitOfWork newUnitOfWork()Returns new not started UnitOfWork that is associated with the manager to manage it's life cycle.- Returns:
- new, not started unit of work
-
eventManager
EventManager eventManager()Returns instance of the event manager configured for this unit of work manager- Returns:
- event manager instance
-