Interface MessageProvider

All Superinterfaces:
Serializable
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface MessageProvider extends Serializable
Simple functional interface that takes a message key plus an array of message arguments and returns the formatted message.
  • Method Summary

    Modifier and Type
    Method
    Description
    getMessage(String code, Object... args)
    Resolves the given message key and formats it using the given message arguments.
  • Method Details

    • getMessage

      String getMessage(String code, Object... args)
      Resolves the given message key and formats it using the given message arguments.
      Parameters:
      code - the message key
      args - the message arguments
      Returns:
      the formatted message