Package | Description |
---|---|
org.springframework.shell.result |
Contains strategies for dealing with results of commands.
|
Modifier and Type | Class and Description |
---|---|
class |
AttributedCharSequenceResultHandler
A
ResultHandler that knows how to render JLine's AttributedCharSequence . |
class |
CommandParserExceptionsExceptionResultHandler
Displays command parsing errors on the terminal.
|
class |
DefaultResultHandler
A simple
ResultHandler that deals with Objects (hence comes as a last resort)
and prints the Object.toString() value of results to standard out. |
class |
ParameterValidationExceptionResultHandler
Displays validation errors on the terminal.
|
class |
TerminalAwareResultHandler<T>
Base class for ResultHandlers that rely on JLine's
Terminal . |
class |
TerminalSizeAwareResultHandler
A ResultHandler that prints
TerminalSizeAware according to the Terminal size. |
class |
ThrowableResultHandler
A
ResultHandler that prints thrown exceptions messages in red. |
Modifier and Type | Method and Description |
---|---|
<T> void |
GenericResultHandlerService.addResultHandler(Class<T> resultType,
ResultHandler<? super T> resultHandler)
Add a plain result handler to this registry.
|
void |
GenericResultHandlerService.addResultHandler(ResultHandler<?> resultHandler)
Add a plain result handler to this registry.
|
Copyright © 2024. All rights reserved.