Interface ConsoleProvider

All Known Implementing Classes:
BasicConsoleProvider

public interface ConsoleProvider
This is a service interface to provide consoles. It allows there to be multiple console implementations at runtime based on classpath.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Return whether the console is possible to use at all
    Create the console.
    boolean
    Return whether this console supports interactive command-line editing.
  • Method Details

    • newConsole

      Console newConsole()
      Create the console. Must not be called unless "isSupported" returned true.
    • isSupported

      boolean isSupported()
      Return whether the console is possible to use at all
    • supportsEditing

      boolean supportsEditing()
      Return whether this console supports interactive command-line editing.