public abstract class AbstractMessageFactory extends Object implements MessageFactory2, Serializable
MessageFactory2
implementations with default implementations (and for
MessageFactory
by extension).
This class is immutable.
Subclasses can implement the MessageFactory2
methods when they can most effectively build Message
instances. If a subclass does not implement MessageFactory2
methods, these calls are routed through
MessageFactory.newMessage(String, Object...)
in this class.
Constructor and Description |
---|
AbstractMessageFactory() |
Modifier and Type | Method and Description |
---|---|
Message |
newMessage(CharSequence message)
Creates a new message for the specified CharSequence.
|
Message |
newMessage(Object message)
Creates a new message based on an Object.
|
Message |
newMessage(String message)
Creates a new message based on a String.
|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
newMessage
public AbstractMessageFactory()
public Message newMessage(CharSequence message)
MessageFactory2
newMessage
in interface MessageFactory2
message
- the (potentially mutable) CharSequencepublic Message newMessage(Object message)
MessageFactory
newMessage
in interface MessageFactory
message
- a message objectpublic Message newMessage(String message)
MessageFactory
newMessage
in interface MessageFactory
message
- a message Stringpublic Message newMessage(String message, Object p0)
MessageFactory2
newMessage
in interface MessageFactory2
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
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
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
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
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
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
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
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
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
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.