Class CommandExecution.DefaultCommandExecution

java.lang.Object
org.springframework.shell.command.CommandExecution.DefaultCommandExecution
All Implemented Interfaces:
CommandExecution
Enclosing interface:
CommandExecution

public static class CommandExecution.DefaultCommandExecution extends Object implements CommandExecution
Default implementation of a CommandExecution.
  • Constructor Details

    • DefaultCommandExecution

      public DefaultCommandExecution(List<? extends org.springframework.messaging.handler.invocation.HandlerMethodArgumentResolver> resolvers, jakarta.validation.Validator validator, org.jline.terminal.Terminal terminal, org.springframework.core.convert.ConversionService conversionService, CommandCatalog commandCatalog)
  • Method Details

    • evaluate

      public Object evaluate(String[] args)
      Description copied from interface: CommandExecution
      Evaluate a command with a given arguments.
      Specified by:
      evaluate in interface CommandExecution
      Parameters:
      args - the command args
      Returns:
      evaluated execution