public final class ParameterizedMessageFactory extends AbstractMessageFactory
{} parameter markers in message strings.
Creates ParameterizedMessage instances for newMessage(String, Object...).
This class is immutable.
| Modifier and Type | Field and Description |
|---|---|
static ParameterizedMessageFactory |
INSTANCE
Instance of StringFormatterMessageFactory.
|
| Constructor and Description |
|---|
ParameterizedMessageFactory() |
| Modifier and Type | Method and Description |
|---|---|
Message |
newMessage(String message,
Object... params)
Creates
ParameterizedMessage instances. |
newMessage, newMessagepublic static final ParameterizedMessageFactory INSTANCE
public Message newMessage(String message, Object... params)
ParameterizedMessage instances.newMessage in interface MessageFactorynewMessage in class AbstractMessageFactorymessage - The message pattern.params - The message parameters.MessageFactory.newMessage(String, Object...)Copyright © 1999-2021 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.