Package com.io7m.cardant.server.controller.inventory

# 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
  Constructor
  Description
  `CAICommandExecutor()`
  A command executor for public commands.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `CAIResponseType`
  `execute(CAICommandContext context, CAICommandType<? extends CAIResponseType> command)`
  Execute a command.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 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: `CACommandExecutorType`
    Execute a command.
    Specified by:
      `execute` in interface `CACommandExecutorType<CAICommandContext,CAICommandType<? extends CAIResponseType>,CAIResponseType>`
    Parameters:
      `context` - The execution context
      `command` - The command
    Returns:
      The result of execution
    Throws:
      `CACommandExecutionFailure` - On errors