UIService implementation that sends messages to stdout and stderr.
| Modifier and Type | Class and Description |
|---|---|
| public static class | ConsoleUIService.
Wrapper around |
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private ConsoleUIService. | |
| private PrintStream | |
| public static final String | |
| public static final String | |
| public static final String | |
| private boolean | |
| private PrintStream | |
| public static final String |
| Access | Constructor and Description |
|---|---|
| public | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | getAllowPrompt()
Implements liquibase. Return current setting of allow prompt flag |
| protected ConsoleUIService. | |
| public PrintStream | |
| public boolean | |
| public PrintStream | |
| public int | getPriority()
Implements liquibase. Returns |
| public <T> T | prompt(String prompt, T valueIfNoEntry, InputHandler<T> inputHandler, Class<T> type)
Implements liquibase. Prompt the user with the message and wait for a response. |
| public void | sendErrorMessage(String message)
Implements liquibase. Send an "error" message to the user. |
| public void | sendErrorMessage(String message, Throwable exception)
Implements liquibase. Send an "error" message to the user along with a stacktrace. |
| public void | sendMessage(String message)
Implements liquibase. Send a "normal" message to the user. |
| public void | setAllowPrompt(boolean
New flag value allowPrompt)Implements liquibase. Method to set flag indicating whether prompting is allowed |
| public void | |
| public void | |
| public void |
| allowPrompt | back to summary |
|---|---|
| private boolean allowPrompt | |
| console | back to summary |
|---|---|
| private ConsoleUIService. | |
| errorStream | back to summary |
|---|---|
| private PrintStream errorStream | |
| MINGW64 | back to summary |
|---|---|
| public static final String MINGW64 | |
| MINTTY | back to summary |
|---|---|
| public static final String MINTTY | |
| MSYSTEM | back to summary |
|---|---|
| public static final String MSYSTEM | |
| outputStackTraces | back to summary |
|---|---|
| private boolean outputStackTraces | |
| outputStream | back to summary |
|---|---|
| private PrintStream outputStream | |
| TERM_PROGRAM | back to summary |
|---|---|
| public static final String TERM_PROGRAM | |
| ConsoleUIService | back to summary |
|---|---|
| public ConsoleUIService() | |
| ConsoleUIService | back to summary |
|---|---|
| protected ConsoleUIService(ConsoleUIService. | |
| getAllowPrompt | back to summary |
|---|---|
| public boolean getAllowPrompt() Implements liquibase. Doc from liquibase. Return current setting of allow prompt flag
| |
| getConsole | back to summary |
|---|---|
| protected ConsoleUIService. Creates the | |
| getErrorStream | back to summary |
|---|---|
public PrintStream getErrorStream()
| |
| getOutputStackTraces | back to summary |
|---|---|
public boolean getOutputStackTraces()
| |
| getOutputStream | back to summary |
|---|---|
public PrintStream getOutputStream()
| |
| getPriority | back to summary |
|---|---|
| public int getPriority() Implements liquibase. Returns
| |
| prompt | back to summary |
|---|---|
| public <T> T prompt(String prompt, T valueIfNoEntry, InputHandler<T> inputHandler, Class<T> type) Implements liquibase. Doc from liquibase. Prompt the user with the message and wait for a response.
| |
| sendErrorMessage | back to summary |
|---|---|
| public void sendErrorMessage(String message) Implements liquibase. Doc from liquibase. Send an "error" message to the user.
| |
| sendErrorMessage | back to summary |
|---|---|
| public void sendErrorMessage(String message, Throwable exception) Implements liquibase. Doc from liquibase. Send an "error" message to the user along with a stacktrace.
| |
| sendMessage | back to summary |
|---|---|
| public void sendMessage(String message) Implements liquibase. Doc from liquibase. Send a "normal" message to the user.
| |
| setAllowPrompt | back to summary |
|---|---|
| public void setAllowPrompt(boolean allowPrompt) throws IllegalArgumentException Implements liquibase. Doc from liquibase. Method to set flag indicating whether prompting is allowed
| |
| setErrorStream | back to summary |
|---|---|
public void setErrorStream(PrintStream errorStream)
| |
| setOutputStackTraces | back to summary |
|---|---|
| public void setOutputStackTraces(boolean outputStackTraces) Set to true to output stacktraces. Defaults to not outputing them.
| |
| setOutputStream | back to summary |
|---|---|
public void setOutputStream(PrintStream outputStream)
| |
Console to allow replacements as needed.
If the passed Console is null, supportsInput() will return false, and readLine() will return null.
| Modifier and Type | Field and Description |
|---|---|
| private final Console | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| public | ConsoleWrapper(Console
the console to use console)This constructor is used for extensions that provide UIService implementations |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public boolean |
| console | back to summary |
|---|---|
| private final Console console | |
| useStdin | back to summary |
|---|---|
| private final boolean useStdin | |
| ConsoleWrapper | back to summary |
|---|---|
| public ConsoleWrapper(Console console) This constructor is used for extensions that provide UIService implementations
| |
| ConsoleWrapper | back to summary |
|---|---|
| public ConsoleWrapper(Console console, boolean useStdInParam) | |
| readLine | back to summary |
|---|---|
| public String readLine() | |
| supportsInput | back to summary |
|---|---|
| public boolean supportsInput() | |