|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.logging.log4j.message.AbstractMessageFactory
public abstract class AbstractMessageFactory
Provides an abstract superclass for MessageFactory implementations with default implementations.
This class is immutable.
Constructor Summary | |
---|---|
AbstractMessageFactory()
|
Method Summary | |
---|---|
Message |
newMessage(Object message)
Creates a new message based on an Object. |
Message |
newMessage(String message)
Creates a new message based on a String. |
abstract Message |
newMessage(String message,
Object... params)
Creates a new parameterized message. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractMessageFactory()
Method Detail |
---|
public Message newMessage(Object message)
MessageFactory
newMessage
in interface MessageFactory
message
- a message object
public Message newMessage(String message)
MessageFactory
newMessage
in interface MessageFactory
message
- a message String
public abstract Message newMessage(String message, Object... params)
MessageFactory
newMessage
in interface MessageFactory
message
- a message template, the kind of message template depends on the implementation.params
- the message parameters
ParameterizedMessageFactory
,
StringFormatterMessageFactory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1999-2015 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.