Interface CommandExecutor

  • Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    public interface CommandExecutor
    Interface containing the method directing how a certain command will be executed.
    • Method Detail

      • execute

        CommandResult execute​(CommandContext context)
                       throws CommandException
        Callback for the execution of a command.
        context - The parsed command arguments for this command
        the result of executing this command
        CommandException - If a user-facing error occurs while executing this command