public interface MessageFactory
Modifier and Type | Method and Description |
---|---|
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... params)
Creates a new parameterized message.
|
Message newMessage(Object message)
message
- a message objectMessage newMessage(String message)
message
- a message StringMessage newMessage(String message, Object... params)
message
- a message template, the kind of message template depends on the implementation.params
- the message parametersParameterizedMessageFactory
,
StringFormatterMessageFactory
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.