Class CAICommandExecutor
java.lang.Object
com.io7m.cardant.server.controller.inventory.CAICommandExecutor
- All Implemented Interfaces:
CACommandExecutorType<CAICommandContext, CAICommandType<? extends CAIResponseType>, CAIResponseType>
public final class CAICommandExecutor
extends Object
implements CACommandExecutorType<CAICommandContext, CAICommandType<? extends CAIResponseType>, CAIResponseType>
A command executor for public commands.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute(CAICommandContext context, CAICommandType<? extends CAIResponseType> command) Execute a command.
-
Constructor Details
-
CAICommandExecutor
public CAICommandExecutor()A command executor for public commands.
-
-
Method Details
-
execute
public CAIResponseType execute(CAICommandContext context, CAICommandType<? extends CAIResponseType> command) throws CACommandExecutionFailure Description copied from interface:CACommandExecutorTypeExecute a command.- Specified by:
executein interfaceCACommandExecutorType<CAICommandContext, CAICommandType<? extends CAIResponseType>, CAIResponseType>- Parameters:
context- The execution contextcommand- The command- Returns:
- The result of execution
- Throws:
CACommandExecutionFailure- On errors
-