org.axonframework.quickstart.handler
Class MarkCompletedCommandHandler
java.lang.Object
org.axonframework.quickstart.handler.MarkCompletedCommandHandler
- All Implemented Interfaces:
- CommandHandler<MarkCompletedCommand>
public class MarkCompletedCommandHandler
- extends Object
- implements CommandHandler<MarkCompletedCommand>
- Author:
- Jettro Coenradie
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MarkCompletedCommandHandler
public MarkCompletedCommandHandler(Repository<ToDoItem> repository)
handle
public Object handle(CommandMessage<MarkCompletedCommand> commandMessage,
UnitOfWork unitOfWork)
throws Throwable
- Description copied from interface:
CommandHandler
- Handles the given
command
.
- Specified by:
handle
in interface CommandHandler<MarkCompletedCommand>
- Parameters:
commandMessage
- The message carrying the command to process.unitOfWork
- The UnitOfWork the command is processed in
- Returns:
- The result of the command processing, if any.
- Throws:
Throwable
- any exception that occurs during command handling
Copyright © 2010-2016. All Rights Reserved.