Package org.springframework.shell.result
Class TerminalAwareResultHandler<T>
java.lang.Object
org.springframework.shell.result.TerminalAwareResultHandler<T>
- All Implemented Interfaces:
ResultHandler<T>
- Direct Known Subclasses:
AttributedCharSequenceResultHandler
,CommandNotFoundResultHandler
,DefaultResultHandler
,ParameterValidationExceptionResultHandler
,TerminalSizeAwareResultHandler
,ThrowableResultHandler
Base class for ResultHandlers that rely on JLine's
Terminal
.-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
TerminalAwareResultHandler
(org.jline.terminal.Terminal terminal) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
doHandleResult
(T result) final void
handleResult
(T result) Deal with some method execution result, whether it was the normal return value, or some kind ofThrowable
.
-
Field Details
-
terminal
protected org.jline.terminal.Terminal terminal
-
-
Constructor Details
-
TerminalAwareResultHandler
protected TerminalAwareResultHandler(org.jline.terminal.Terminal terminal)
-
-
Method Details
-
handleResult
Description copied from interface:ResultHandler
Deal with some method execution result, whether it was the normal return value, or some kind ofThrowable
.- Specified by:
handleResult
in interfaceResultHandler<T>
-
doHandleResult
-