public final class StringFormatterMessageFactory extends AbstractMessageFactory
FormattedMessage
instances for MessageFactory2
methods (and MessageFactory
by
extension.)
Enables the use of Formatter
strings in message strings.
Creates StringFormattedMessage
instances for newMessage(String, Object...)
.
This class is immutable.
This class implements all MessageFactory2
methods.
Modifier and Type | Field and Description |
---|---|
static StringFormatterMessageFactory |
INSTANCE
Instance of StringFormatterMessageFactory.
|
Constructor and Description |
---|
StringFormatterMessageFactory()
Constructs a message factory with default flow strings.
|
Modifier and Type | Method and Description |
---|---|
Message |
newMessage(String message,
Object... params)
Creates
StringFormattedMessage instances. |
Message |
newMessage(String message,
Object p0)
Creates a new parameterized message.
|
Message |
newMessage(String message,
Object p0,
Object p1)
Creates a new parameterized message.
|
Message |
newMessage(String message,
Object p0,
Object p1,
Object p2)
Creates a new parameterized message.
|
Message |
newMessage(String message,
Object p0,
Object p1,
Object p2,
Object p3)
Creates a new parameterized message.
|
Message |
newMessage(String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4)
Creates a new parameterized message.
|
Message |
newMessage(String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4,
Object p5)
Creates a new parameterized message.
|
Message |
newMessage(String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4,
Object p5,
Object p6)
Creates a new parameterized message.
|
Message |
newMessage(String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4,
Object p5,
Object p6,
Object p7)
Creates a new parameterized message.
|
Message |
newMessage(String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4,
Object p5,
Object p6,
Object p7,
Object p8)
Creates a new parameterized message.
|
Message |
newMessage(String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4,
Object p5,
Object p6,
Object p7,
Object p8,
Object p9)
Creates a new parameterized message.
|
newMessage, newMessage, newMessage
public static final StringFormatterMessageFactory INSTANCE
public StringFormatterMessageFactory()
public Message newMessage(String message, Object... params)
StringFormattedMessage
instances.message
- The message pattern.params
- The parameters to the message.MessageFactory.newMessage(String, Object...)
public Message newMessage(String message, Object p0)
MessageFactory2
newMessage
in interface MessageFactory2
newMessage
in class AbstractMessageFactory
message
- a message template, the kind of message template depends on the implementation.p0
- a message parameterParameterizedMessageFactory
public Message newMessage(String message, Object p0, Object p1)
MessageFactory2
newMessage
in interface MessageFactory2
newMessage
in class AbstractMessageFactory
message
- a message template, the kind of message template depends on the implementation.p0
- a message parameterp1
- a message parameterParameterizedMessageFactory
public Message newMessage(String message, Object p0, Object p1, Object p2)
MessageFactory2
newMessage
in interface MessageFactory2
newMessage
in class AbstractMessageFactory
message
- a message template, the kind of message template depends on the implementation.p0
- a message parameterp1
- a message parameterp2
- a message parameterParameterizedMessageFactory
public Message newMessage(String message, Object p0, Object p1, Object p2, Object p3)
MessageFactory2
newMessage
in interface MessageFactory2
newMessage
in class AbstractMessageFactory
message
- a message template, the kind of message template depends on the implementation.p0
- a message parameterp1
- a message parameterp2
- a message parameterp3
- a message parameterParameterizedMessageFactory
public Message newMessage(String message, Object p0, Object p1, Object p2, Object p3, Object p4)
MessageFactory2
newMessage
in interface MessageFactory2
newMessage
in class AbstractMessageFactory
message
- a message template, the kind of message template depends on the implementation.p0
- a message parameterp1
- a message parameterp2
- a message parameterp3
- a message parameterp4
- a message parameterParameterizedMessageFactory
public Message newMessage(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5)
MessageFactory2
newMessage
in interface MessageFactory2
newMessage
in class AbstractMessageFactory
message
- a message template, the kind of message template depends on the implementation.p0
- a message parameterp1
- a message parameterp2
- a message parameterp3
- a message parameterp4
- a message parameterp5
- a message parameterParameterizedMessageFactory
public Message newMessage(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6)
MessageFactory2
newMessage
in interface MessageFactory2
newMessage
in class AbstractMessageFactory
message
- a message template, the kind of message template depends on the implementation.p0
- a message parameterp1
- a message parameterp2
- a message parameterp3
- a message parameterp4
- a message parameterp5
- a message parameterp6
- a message parameterParameterizedMessageFactory
public Message newMessage(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7)
MessageFactory2
newMessage
in interface MessageFactory2
newMessage
in class AbstractMessageFactory
message
- a message template, the kind of message template depends on the implementation.p0
- a message parameterp1
- a message parameterp2
- a message parameterp3
- a message parameterp4
- a message parameterp5
- a message parameterp6
- a message parameterp7
- a message parameterParameterizedMessageFactory
public Message newMessage(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8)
MessageFactory2
newMessage
in interface MessageFactory2
newMessage
in class AbstractMessageFactory
message
- a message template, the kind of message template depends on the implementation.p0
- a message parameterp1
- a message parameterp2
- a message parameterp3
- a message parameterp4
- a message parameterp5
- a message parameterp6
- a message parameterp7
- a message parameterp8
- a message parameterParameterizedMessageFactory
public Message newMessage(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9)
MessageFactory2
newMessage
in interface MessageFactory2
newMessage
in class AbstractMessageFactory
message
- a message template, the kind of message template depends on the implementation.p0
- a message parameterp1
- a message parameterp2
- a message parameterp3
- a message parameterp4
- a message parameterp5
- a message parameterp6
- a message parameterp7
- a message parameterp8
- a message parameterp9
- a message parameterParameterizedMessageFactory
Copyright © 1999-1969 The 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.