org.axonframework.unitofwork
Interface UnitOfWorkFactory

All Known Implementing Classes:
DefaultUnitOfWorkFactory

public interface UnitOfWorkFactory

The UnitOfWorkFactory interface is used to obtain UnitOfWork instances to manage activity in command handling processes.

All UnitOfWork instances returned by this factory have been started. It is the responsibility of the caller to either invoke commit or rollback on these instances when done.

Since:
0.7
Author:
Allard Buijze

Method Summary
 UnitOfWork createUnitOfWork()
          Creates a new UnitOfWork instance.
 

Method Detail

createUnitOfWork

UnitOfWork createUnitOfWork()
Creates a new UnitOfWork instance. The instance's UnitOfWork.isStarted() method returns true.

Returns:
a new UnitOfWork instance, which has been started.


Copyright © 2010-2016. All Rights Reserved.