net.sf.doolin.gui.service
Interface InfoService

All Known Implementing Classes:
DefaultInfoService

public interface InfoService

Logger service for the application

Author:
Damien Coraboeuf

Method Summary
 boolean confirm(ActionContext actionContext, Object messageKey, Object... messageParameters)
          Asks a confirmation from the user
 ConfirmResult confirm3(ActionContext actionContext, Object messageKey, Object... messageParameters)
          Asks a three-choices confirmation from the user
 void error(ActionContext actionContext, Throwable e, Object messageKey, Object... messageParameters)
          Logs an error
 void info(ActionContext actionContext, Object messageKey, Object... messageParameters)
          Logs an information message
 void warning(ActionContext actionContext, Throwable e, Object messageKey, Object... messageParameters)
          Logs a warning
 

Method Detail

confirm

boolean confirm(ActionContext actionContext,
                Object messageKey,
                Object... messageParameters)
Asks a confirmation from the user

Parameters:
actionContext - Action context
messageKey - Key of the message
messageParameters - Parameters for the message
Returns:
Result of the confirmation

confirm3

ConfirmResult confirm3(ActionContext actionContext,
                       Object messageKey,
                       Object... messageParameters)
Asks a three-choices confirmation from the user

Parameters:
actionContext - Action context
messageKey - Key of the message
messageParameters - Parameters for the message
Returns:
Result of the confirmation

error

void error(ActionContext actionContext,
           Throwable e,
           Object messageKey,
           Object... messageParameters)
Logs an error

Parameters:
actionContext - Action context
e - Error to log
messageKey - Key of the message
messageParameters - Parameters for the message

info

void info(ActionContext actionContext,
          Object messageKey,
          Object... messageParameters)
Logs an information message

Parameters:
actionContext - Action context
messageKey - Key of the message
messageParameters - Parameters for the message

warning

void warning(ActionContext actionContext,
             Throwable e,
             Object messageKey,
             Object... messageParameters)
Logs a warning

Parameters:
actionContext - Action context
e - Warning to log
messageKey - Key of the message
messageParameters - Parameters for the message


Copyright © 2011. All Rights Reserved.