public final class ParameterizedMessageFactory extends AbstractMessageFactory
FormattedMessage
instances for MessageFactory2
methods (and MessageFactory
by
extension.)
Enables the use of {}
parameter markers in message strings.
Creates ParameterizedMessage
instances for newMessage(String, Object...)
.
This class is immutable.
This class implements all MessageFactory2
methods.
Modifier and Type | Field and Description |
---|---|
static ParameterizedMessageFactory |
INSTANCE
Instance of ParameterizedMessageFactory.
|
Constructor and Description |
---|
ParameterizedMessageFactory()
Constructs a message factory.
|
Modifier and Type | Method and Description |
---|---|
Message |
newMessage(String message,
Object... params)
Creates
ParameterizedMessage 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 ParameterizedMessageFactory INSTANCE
public ParameterizedMessageFactory()
public Message newMessage(String message, Object... params)
ParameterizedMessage
instances.message
- The message pattern.params
- The message parameters.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.