org.apache.tapestry5.ioc.internal.util

## Class MessageFormatterImpl

- java.lang.Object
- - org.apache.tapestry5.ioc.internal.util.MessageFormatterImpl

- All Implemented Interfaces:
    MessageFormatter

      public class MessageFormatterImpl
      extends Object
      implements MessageFormatter

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `MessageFormatterImpl(String format, Locale locale)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `format(Object... args)` Formats the message.
    `String` | `toString()` Returns the underlying format string for this formatter.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### MessageFormatterImpl

          public MessageFormatterImpl(String format,
                                      Locale locale)

  - ### Method Detail

    - #### format

          public String format(Object... args)

      Description copied from interface: `MessageFormatter`
      Formats the message. The arguments are passed to `Formatter` as is with one exception: Object of type `Throwable` are converted to their `Throwable.getMessage()` (or, if that is null, to the name of the class).
      Specified by:
        `format` in interface `MessageFormatter`
      Returns:
        formatted string

    - #### toString

          public String toString()

      Returns the underlying format string for this formatter.
      Overrides:
        `toString` in class `Object`
      Since:
        5.4

${project.version} - Copyright © 2003-2015 The Apache Software Foundation.