Package liquibase.ui

Class ConsoleUIService.ConsoleWrapper

java.lang.Object
liquibase.ui.ConsoleUIService.ConsoleWrapper
Direct Known Subclasses:
MockConsoleWrapper
Enclosing class:
ConsoleUIService

public static class ConsoleUIService.ConsoleWrapper extends Object
Wrapper around Console to allow replacements as needed. If the passed Console is null, supportsInput() will return false, and readLine() will return null.
  • Constructor Details

    • ConsoleWrapper

      public ConsoleWrapper(Console console)
      This constructor is used for extensions that provide UIService implementations
      Parameters:
      console - the console to use
    • ConsoleWrapper

      public ConsoleWrapper(Console console, boolean useStdInParam)
  • Method Details

    • readLine

      public String readLine()
    • supportsInput

      public boolean supportsInput()