public class CreateToDoCommandHandler extends Object implements CommandHandler<CreateToDoItemCommand>
| Constructor and Description |
|---|
CreateToDoCommandHandler(Repository<ToDoItem> repository) |
| Modifier and Type | Method and Description |
|---|---|
Object |
handle(CommandMessage<CreateToDoItemCommand> commandMessage,
UnitOfWork unitOfWork)
Handles the given
command. |
public CreateToDoCommandHandler(Repository<ToDoItem> repository)
public Object handle(CommandMessage<CreateToDoItemCommand> commandMessage, UnitOfWork unitOfWork) throws Throwable
CommandHandlercommand.handle in interface CommandHandler<CreateToDoItemCommand>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.