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, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
clone, describe, get, get, getAttributes, getObjectMetaData, getValuePath, has, set
public int getPriority()
getPriority
in interface UIService
public void sendMessage(String message)
UIService
sendMessage
in interface UIService
public void sendErrorMessage(String message)
UIService
sendErrorMessage
in interface UIService
public void sendErrorMessage(String message, Throwable exception)
UIService
sendErrorMessage
in interface UIService
public void setAllowPrompt(boolean allowPrompt) throws IllegalArgumentException
UIService
setAllowPrompt
in interface UIService
allowPrompt
- New flag valueIllegalArgumentException
- If parameter is not allowedpublic boolean getAllowPrompt()
UIService
getAllowPrompt
in interface UIService
public <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 © 2023 Liquibase.org. All rights reserved.