Class MessageFormatMessageInterpolator

    • Constructor Detail

      • MessageFormatMessageInterpolator

        public MessageFormatMessageInterpolator()
    • Method Detail

      • interpolate

        public String interpolate​(String messageTemplate,
                                  Serializable[] arguments,
                                  Locale locale)
        Description copied from interface: MessageInterpolator
        Replaces the arguments of the given message with the given arguments.
        Specified by:
        interpolate in interface MessageInterpolator
        Parameters:
        messageTemplate - the message text which has to be interpolated
        arguments - a list of numbered and/or named arguments for the current message
        locale - to use for the formatting
        Returns:
        the final (interpolated) message text if it was possible to replace the parameters with the given arguments, or the unmodified messageText otherwise