|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.exceptions.i18n.message.DefaultMessageComposer
IcuMessageComposer
. Will be removed with version 1.0. To switch to this version please reformat your compound messages, using ICU MessageFormat.
@Deprecated public class DefaultMessageComposer
The message composer creates messages from message templates by replacing the place holders with localized parameter values.
The message composer is an utility class to be instantiated without internal state.
Constructor Summary | |
---|---|
DefaultMessageComposer() Deprecated. Default constructor. |
Method Summary | |
---|---|
String |
composeMessage(Object exception, Locale locale, ResourceBundle bundle, String keyPrefix, MessageType messageType) Deprecated. Creates the message from the message template. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultMessageComposer()
Method Detail |
---|
public String composeMessage(Object exception, Locale locale, ResourceBundle bundle, String keyPrefix, MessageType messageType)
MessageComposer
composeMessage
in interface
MessageComposer
exception
- the instance with the values for the message template's parameters.
locale
- the locale to use to format the arguments within the template.
bundle
- the resource bundle to fetch the message from.
keyPrefix
- the prefix to the key to fetch the message from the bundle. The suffix is provided by the message type.
messageType
- the type of message to format. This allows to access the correct index of the exception's value within the template.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |