|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MessageFactory
A factory interface that makes Message Objects availiable.
Method Summary | |
---|---|
boolean |
containsKey(String key)
Returns whether given key has a value in one of the registered resources. |
Message |
createMessage(String messageKey)
Create a Message specified by given key. |
Message |
createMessage(String messageKey,
Object[] parameters,
Throwable e)
Create a Message specified by given key and additionally parameters. |
Collection |
getSuppressableMessages()
Returns a Collection of Message identifiers of messages that are
allowed to be suppressed by the user. |
Method Detail |
---|
Message createMessage(String messageKey)
Message createMessage(String messageKey, Object[] parameters, Throwable e)
messageKey
- identifier keyparameters
- replacing the placeholders {0}, {1}... in the body text.e
- an Exception belonging to the message
boolean containsKey(String key)
key
- the key to look up in the resource bundle
Collection getSuppressableMessages()
Message
identifiers of messages that are
allowed to be suppressed by the user.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |