Package org.springframework.shell.result
Class ResultHandlerConfig
java.lang.Object
org.springframework.shell.result.ResultHandlerConfig
Used for explicit configuration of
ResultHandler
s.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionattributedCharSequenceResultHandler
(org.jline.terminal.Terminal terminal) commandNotFoundResultHandler
(org.jline.terminal.Terminal terminal, org.springframework.beans.factory.ObjectProvider<CommandNotFoundMessageProvider> provider) defaultResultHandler
(org.jline.terminal.Terminal terminal) parameterValidationExceptionResultHandler
(org.jline.terminal.Terminal terminal) terminalSizeAwareResultHandler
(org.jline.terminal.Terminal terminal) throwableResultHandler
(org.jline.terminal.Terminal terminal, CommandCatalog commandCatalog, ShellContext shellContext, org.springframework.beans.factory.ObjectProvider<InteractiveShellRunner> interactiveApplicationRunner)
-
Constructor Details
-
ResultHandlerConfig
public ResultHandlerConfig()
-
-
Method Details
-
terminalSizeAwareResultHandler
@Bean @ConditionalOnClass(TerminalSizeAware.class) public TerminalSizeAwareResultHandler terminalSizeAwareResultHandler(org.jline.terminal.Terminal terminal) -
attributedCharSequenceResultHandler
@Bean public AttributedCharSequenceResultHandler attributedCharSequenceResultHandler(org.jline.terminal.Terminal terminal) -
defaultResultHandler
-
parameterValidationExceptionResultHandler
@Bean public ParameterValidationExceptionResultHandler parameterValidationExceptionResultHandler(org.jline.terminal.Terminal terminal) -
commandParserExceptionResolver
-
throwableResultHandler
@Bean public ThrowableResultHandler throwableResultHandler(org.jline.terminal.Terminal terminal, CommandCatalog commandCatalog, ShellContext shellContext, org.springframework.beans.factory.ObjectProvider<InteractiveShellRunner> interactiveApplicationRunner) -
commandNotFoundResultHandler
@Bean public CommandNotFoundResultHandler commandNotFoundResultHandler(org.jline.terminal.Terminal terminal, org.springframework.beans.factory.ObjectProvider<CommandNotFoundMessageProvider> provider)
-