Interface CommandExecution
- All Known Implementing Classes:
CommandExecution.DefaultCommandExecution
public interface CommandExecution
Interface to evaluate a result from a command with an arguments.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
static class
static class
static class
Default implementation of aCommandExecution
.static class
-
Method Summary
Modifier and TypeMethodDescriptionevaluate
(CommandRegistration registration, String[] args) Evaluate a command with a given arguments.static CommandExecution
of
(List<? extends org.springframework.messaging.handler.invocation.HandlerMethodArgumentResolver> resolvers) Gets an instance of a defaultCommandExecution
.static CommandExecution
of
(List<? extends org.springframework.messaging.handler.invocation.HandlerMethodArgumentResolver> resolvers, jakarta.validation.Validator validator, org.jline.terminal.Terminal terminal, org.springframework.core.convert.ConversionService conversionService) Gets an instance of a defaultCommandExecution
.static CommandExecution
of
(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) Gets an instance of a defaultCommandExecution
.
-
Method Details
-
evaluate
Evaluate a command with a given arguments.- Parameters:
registration
- the command registrationargs
- the command args- Returns:
- evaluated execution
-
of
static CommandExecution of(List<? extends org.springframework.messaging.handler.invocation.HandlerMethodArgumentResolver> resolvers) Gets an instance of a defaultCommandExecution
.- Parameters:
resolvers
- the handler method argument resolvers- Returns:
- default command execution
-
of
static CommandExecution of(List<? extends org.springframework.messaging.handler.invocation.HandlerMethodArgumentResolver> resolvers, jakarta.validation.Validator validator, org.jline.terminal.Terminal terminal, org.springframework.core.convert.ConversionService conversionService) Gets an instance of a defaultCommandExecution
.- Parameters:
resolvers
- the handler method argument resolversvalidator
- the validatorterminal
- the terminalconversionService
- the conversion services- Returns:
- default command execution
-
of
static CommandExecution of(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) Gets an instance of a defaultCommandExecution
.- Parameters:
resolvers
- the handler method argument resolversvalidator
- the validatorterminal
- the terminalconversionService
- the conversion services- Returns:
- default command execution
-