Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.logging.log4j.message
Interface MessageFactory

All Known Implementing Classes:
  AbstractMessageFactory, FormattedMessageFactory, LocalizedMessageFactory, MessageFormatMessageFactory, ParameterizedMessageFactory, StringFormatterMessageFactory

    public interface MessageFactory

Creates messages. Implementations can provide different message format syntaxes.

See Also:
  `ParameterizedMessageFactory`, `StringFormatterMessageFactory`

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.
`Message` | `newMessage(String message, Object... params)` Creates a new parameterized message.

Method Detail

### newMessage

    Message newMessage(Object message)

  Creates a new message based on an Object.

  Parameters:
    `message` - a message object
  Returns:
    a new message

### newMessage

    Message newMessage(String message)

  Creates a new message based on a String.

  Parameters:
    `message` - a message String
  Returns:
    a new message

### newMessage

    Message newMessage(String message,
                       Object... params)

  Creates a new parameterized message.

  Parameters:
    `message` - a message template, the kind of message template depends on the implementation.
    `params` - the message parameters
  Returns:
    a new message
  See Also:
    `ParameterizedMessageFactory`, `StringFormatterMessageFactory`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
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.