public final class SimpleMessageFactory extends AbstractMessageFactory
Creates StringFormattedMessage
instances for
newMessage(String, Object...)
.
This class is immutable.
Modifier and Type | Field and Description |
---|---|
static SimpleMessageFactory |
INSTANCE
Instance of StringFormatterMessageFactory.
|
Constructor and Description |
---|
SimpleMessageFactory() |
Modifier and Type | Method and Description |
---|---|
Message |
newMessage(String message,
Object... params)
Creates
StringFormattedMessage instances. |
newMessage, newMessage
public static final SimpleMessageFactory INSTANCE
public Message newMessage(String message, Object... params)
StringFormattedMessage
instances.newMessage
in interface MessageFactory
newMessage
in class AbstractMessageFactory
message
- The message pattern.params
- The parameters to the message.MessageFactory.newMessage(String, Object...)
Copyright © 1999-2016 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.