Class CommandServiceImpl

    • Constructor Detail

      • CommandServiceImpl

        public CommandServiceImpl​(CommandLogic logic)
    • Method Detail

      • read

        public CommandTO read​(String key)
        Description copied from interface: CommandService
        Returns the command for the given key, if found.
        Specified by:
        read in interface CommandService
        Parameters:
        key - command key
        Returns:
        the command for the given key, if found
      • run

        public CommandOutput run​(CommandTO command)
        Description copied from interface: CommandService
        Runs the given command with the given arguments and returns the resulting output.
        Specified by:
        run in interface CommandService
        Parameters:
        command - command to run, with arguments
        Returns:
        command output