public class MarkCompletedCommandHandler extends Object implements CommandHandler<MarkCompletedCommand>
Constructor and Description |
---|
MarkCompletedCommandHandler(Repository<ToDoItem> repository) |
Modifier and Type | Method and Description |
---|---|
Object |
handle(CommandMessage<MarkCompletedCommand> commandMessage,
UnitOfWork unitOfWork)
Handles the given
command . |
public MarkCompletedCommandHandler(Repository<ToDoItem> repository)
public Object handle(CommandMessage<MarkCompletedCommand> commandMessage, UnitOfWork unitOfWork) throws Throwable
CommandHandler
command
.handle
in interface CommandHandler<MarkCompletedCommand>
commandMessage
- The message carrying the command to process.unitOfWork
- The UnitOfWork the command is processed inThrowable
- any exception that occurs during command handlingCopyright © 2010-2014. All Rights Reserved.