public class TextIoFactory extends Object
TextTerminal
and TextIO
implementations.
TextTerminal
implementation is obtained as follows:
TextTerminal
class.
The class is loaded and instantiated. If this process fails, then the next step is executed.ServiceLoader
loads the configured TextTerminalProvider
s and searches for the
first one capable to provide a TextTerminal
instance.
If none is found, then the next step is executed.System.console()
is not null, a ConsoleTextTerminal
is provided.SwingTextTerminal
is provided.SystemTextTerminal
is providedModifier and Type | Field and Description |
---|---|
static String |
TEXT_TERMINAL_CLASS_PROPERTY |
Constructor and Description |
---|
TextIoFactory() |
Modifier and Type | Method and Description |
---|---|
static TextIO |
getTextIO() |
static TextTerminal |
getTextTerminal() |
public static final String TEXT_TERMINAL_CLASS_PROPERTY
public static TextTerminal getTextTerminal()
public static TextIO getTextIO()