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
.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.shell.command.CommandExecution
CommandExecution.CommandExecutionException, CommandExecution.CommandExecutionHandlerMethodArgumentResolvers, CommandExecution.CommandParserExceptionsException, CommandExecution.DefaultCommandExecution, CommandExecution.ParamNameHandlerMethodArgumentResolver
-
Constructor Summary
ConstructorDescriptionDefaultCommandExecution
(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 Summary
Modifier and TypeMethodDescriptionevaluate
(CommandRegistration registration, String[] args) Evaluate a command with a given arguments.
-
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
Description copied from interface:CommandExecution
Evaluate a command with a given arguments.- Specified by:
evaluate
in interfaceCommandExecution
- Parameters:
registration
- the command registrationargs
- the command args- Returns:
- evaluated execution
-