Top Description Fields Constructors Methods
liquibase.ui

public Class LoggerUIService

extends AbstractExtensibleObject
implements UIService
Class Inheritance
All Implemented Interfaces
liquibase.ui.UIService, liquibase.plugin.Plugin, liquibase.ExtensibleObject, java.lang.Cloneable
Imports
liquibase.AbstractExtensibleObject, .Scope, java.util.logging.Level

Sends all UI requests to the configured Logger. The level they are logged at defaults to Level#INFO for standard messages and Level#SEVERE for error messages.

Field Summary

Modifier and TypeField and Description
private Level
private Level

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
getAllowPrompt()

Implements liquibase.ui.UIService.getAllowPrompt.

Return current setting of allow prompt flag

public Level
public int
public Level
public <T> T
prompt(String prompt, T valueIfNoEntry, InputHandler<T> inputHandler, Class<T> type)

Implements liquibase.ui.UIService.prompt.

This implementation simply returns the default value, since it cannot prompt the user.

public void
sendErrorMessage(String message)

Implements liquibase.ui.UIService.sendErrorMessage.

Send an "error" message to the user.

public void
sendErrorMessage(String message, Throwable exception)

Implements liquibase.ui.UIService.sendErrorMessage.

Send an "error" message to the user along with a stacktrace.

public void
sendMessage(String message)

Implements liquibase.ui.UIService.sendMessage.

Send a "normal" message to the user.

public void
setAllowPrompt(boolean
New flag value
allowPrompt
)

Implements liquibase.ui.UIService.setAllowPrompt.

Method to set flag indicating whether prompting is allowed

public void
setErrorLogLevel(Level errorLogLevel)

public void
setStandardLogLevel(Level standardLogLevel)

Inherited from liquibase.AbstractExtensibleObject:
clonedescribeequalsgetgetgetgetAttributesgetFieldValuegetObjectMetaDatagetValuePathhashashCodesettoString

Field Detail

errorLogLevelback to summary
private Level errorLogLevel
standardLogLevelback to summary
private Level standardLogLevel

Constructor Detail

LoggerUIServiceback to summary
public LoggerUIService()

Method Detail

getAllowPromptback to summary
public boolean getAllowPrompt()

Implements liquibase.ui.UIService.getAllowPrompt.

Doc from liquibase.ui.UIService.getAllowPrompt.

Return current setting of allow prompt flag

Returns:boolean

boolean

Annotations
@Override
getErrorLogLevelback to summary
public Level getErrorLogLevel()
getPriorityback to summary
public int getPriority()

Implements liquibase.ui.UIService.getPriority.

Annotations
@Override
getStandardLogLevelback to summary
public Level getStandardLogLevel()
promptback to summary
public <T> T prompt(String prompt, T valueIfNoEntry, InputHandler<T> inputHandler, Class<T> type)

Implements liquibase.ui.UIService.prompt.

This implementation simply returns the default value, since it cannot prompt the user.

Annotations
@Override
sendErrorMessageback to summary
public void sendErrorMessage(String message)

Implements liquibase.ui.UIService.sendErrorMessage.

Doc from liquibase.ui.UIService.sendErrorMessage.

Send an "error" message to the user.

Annotations
@Override
sendErrorMessageback to summary
public void sendErrorMessage(String message, Throwable exception)

Implements liquibase.ui.UIService.sendErrorMessage.

Doc from liquibase.ui.UIService.sendErrorMessage.

Send an "error" message to the user along with a stacktrace.

Annotations
@Override
sendMessageback to summary
public void sendMessage(String message)

Implements liquibase.ui.UIService.sendMessage.

Doc from liquibase.ui.UIService.sendMessage.

Send a "normal" message to the user.

Annotations
@Override
setAllowPromptback to summary
public void setAllowPrompt(boolean allowPrompt) throws IllegalArgumentException

Implements liquibase.ui.UIService.setAllowPrompt.

Doc from liquibase.ui.UIService.setAllowPrompt.

Method to set flag indicating whether prompting is allowed

Parameters
allowPrompt:boolean

New flag value

Annotations
@Override
Exceptions
IllegalArgumentException:
If parameter is not allowed
setErrorLogLevelback to summary
public void setErrorLogLevel(Level errorLogLevel)
setStandardLogLevelback to summary
public void setStandardLogLevel(Level standardLogLevel)