public class LoggerUIService extends AbstractExtensibleObject implements UIService
Level.INFO for standard messages and Level.SEVERE for error messages.PRIORITY_DEFAULT, PRIORITY_NOT_APPLICABLE, PRIORITY_SPECIALIZED| Constructor and Description |
|---|
LoggerUIService() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getAllowPrompt()
Return current setting of allow prompt flag
|
Level |
getErrorLogLevel() |
int |
getPriority() |
Level |
getStandardLogLevel() |
<T> T |
prompt(String prompt,
T valueIfNoEntry,
InputHandler<T> inputHandler,
Class<T> type)
This implementation simply returns the default value, since it cannot prompt the user.
|
void |
sendErrorMessage(String message)
Send an "error" message to the user.
|
void |
sendErrorMessage(String message,
Throwable exception)
Send an "error" message to the user along with a stacktrace.
|
void |
sendMessage(String message)
Send a "normal" message to the user.
|
void |
setAllowPrompt(boolean allowPrompt)
Method to set flag indicating whether prompting is allowed
|
void |
setErrorLogLevel(Level errorLogLevel) |
void |
setStandardLogLevel(Level standardLogLevel) |
clone, describe, equals, get, get, get, getAttributes, getFieldValue, getObjectMetaData, getValuePath, has, hashCode, set, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitclone, describe, get, get, getAttributes, getObjectMetaData, getValuePath, has, setpublic int getPriority()
getPriority in interface UIServicepublic void sendMessage(String message)
UIServicesendMessage in interface UIServicepublic void sendErrorMessage(String message)
UIServicesendErrorMessage in interface UIServicepublic void sendErrorMessage(String message, Throwable exception)
UIServicesendErrorMessage in interface UIServicepublic void setAllowPrompt(boolean allowPrompt)
throws IllegalArgumentException
UIServicesetAllowPrompt in interface UIServiceallowPrompt - New flag valueIllegalArgumentException - If parameter is not allowedpublic boolean getAllowPrompt()
UIServicegetAllowPrompt in interface UIServicepublic <T> T prompt(String prompt, T valueIfNoEntry, InputHandler<T> inputHandler, Class<T> type)
public Level getStandardLogLevel()
public void setStandardLogLevel(Level standardLogLevel)
public Level getErrorLogLevel()
public void setErrorLogLevel(Level errorLogLevel)
Copyright © 2022 Liquibase.org. All rights reserved.