public final class StringFormatterMessageFactory extends AbstractMessageFactory
Formatter strings in message strings.
Creates StringFormattedMessage instances for newMessage(String, Object...).
This class is immutable.
| Modifier and Type | Field and Description |
|---|---|
static StringFormatterMessageFactory |
INSTANCE
Instance of StringFormatterMessageFactory.
|
| Constructor and Description |
|---|
StringFormatterMessageFactory() |
| Modifier and Type | Method and Description |
|---|---|
Message |
newMessage(String message,
Object... params)
Creates
StringFormattedMessage instances. |
newMessage, newMessagepublic static final StringFormatterMessageFactory INSTANCE
public Message newMessage(String message, Object... params)
StringFormattedMessage instances.newMessage in interface MessageFactorynewMessage in class AbstractMessageFactorymessage - The message pattern.params - The parameters to the message.MessageFactory.newMessage(String, Object...)Copyright © 2006-2016 OPS4J - Open Participation Software for Java. All Rights Reserved.