org.openbp.common.generic.msgcontainer
Interface MsgContainer

All Known Implementing Classes:
NullMsgContainer, StandardMsgContainer

public interface MsgContainer

Interface defining a generic message container.

Author:
Heiko Erhardt

Method Summary
 void addMsg(java.lang.Object source, java.lang.String msg)
          Adds a message to the message list.
 void addMsg(java.lang.Object source, java.lang.String msg, java.lang.Object[] args)
          Adds a message to the message list.
 void addMsg(java.lang.String msgType, java.lang.Object source, java.lang.String msg)
          Adds a message to the message list.
 void addMsg(java.lang.String msgType, java.lang.Object source, java.lang.String msg, java.lang.Object[] args)
          Adds a message to the message list.
 

Method Detail

addMsg

void addMsg(java.lang.Object source,
            java.lang.String msg,
            java.lang.Object[] args)
Adds a message to the message list. The message will be formatted according to the rules specified in the MsgFormat class.

Parameters:
source - Object that caused the message
msg - Message to add
args - Message arguments or null

addMsg

void addMsg(java.lang.Object source,
            java.lang.String msg)
Adds a message to the message list.

Parameters:
source - Object that caused the message
msg - Message to add

addMsg

void addMsg(java.lang.String msgType,
            java.lang.Object source,
            java.lang.String msg,
            java.lang.Object[] args)
Adds a message to the message list. The message will be formatted according to the rules specified in the MsgFormat class.

Parameters:
msgType - Message type (see the constants of the LogLevel interface)
source - Object that caused the message
msg - Message to add
args - Message arguments or null

addMsg

void addMsg(java.lang.String msgType,
            java.lang.Object source,
            java.lang.String msg)
Adds a message to the message list.

Parameters:
msgType - Message type (see the constants of the LogLevel interface)
source - Object that caused the message
msg - Message to add


Copyright © 2011. All Rights Reserved.