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

public abstract class TerminalAwareResultHandler<T> extends Object implements ResultHandler<T>
Base class for ResultHandlers that rely on JLine's Terminal.
  • Field Details

    • terminal

      protected org.jline.terminal.Terminal terminal
  • Constructor Details

    • TerminalAwareResultHandler

      protected TerminalAwareResultHandler(org.jline.terminal.Terminal terminal)
  • Method Details

    • handleResult

      public final void handleResult(T result)
      Description copied from interface: ResultHandler
      Deal with some method execution result, whether it was the normal return value, or some kind of Throwable.
      Specified by:
      handleResult in interface ResultHandler<T>
    • doHandleResult

      protected abstract void doHandleResult(T result)