Class IdUCommandExecutor
java.lang.Object
com.io7m.idstore.server.controller.user.IdUCommandExecutor
- All Implemented Interfaces:
IdCommandExecutorType<IdSessionUser,
IdUCommandContext, IdUCommandType<? extends IdUResponseType>, IdUResponseType>
public final class IdUCommandExecutor
extends Object
implements IdCommandExecutorType<IdSessionUser,IdUCommandContext,IdUCommandType<? extends IdUResponseType>,IdUResponseType>
A command executor for public commands.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionexecute
(IdUCommandContext context, IdUCommandType<? extends IdUResponseType> command) Execute a command.
-
Constructor Details
-
IdUCommandExecutor
public IdUCommandExecutor()A command executor for public commands.
-
-
Method Details
-
execute
public IdUResponseType execute(IdUCommandContext context, IdUCommandType<? extends IdUResponseType> command) throws IdCommandExecutionFailure Description copied from interface:IdCommandExecutorType
Execute a command.- Specified by:
execute
in interfaceIdCommandExecutorType<IdSessionUser,
IdUCommandContext, IdUCommandType<? extends IdUResponseType>, IdUResponseType> - Parameters:
context
- The execution contextcommand
- The command- Returns:
- The result of execution
- Throws:
IdCommandExecutionFailure
- On errors
-