Interface MessageResource

All Known Implementing Classes:
Message

public interface MessageResource
A message resource.

This interface implementation instance must be thread safe.

  • Method Details

    • getCode

      String getCode()
      Returns a message code.
      Returns:
      a message code
    • getMessagePattern

      String getMessagePattern()
      Returns the string that contains replacement parameters such as {0} and {1}.
      Returns:
      the string that contains replacement parameters
    • getMessage

      String getMessage(Object... args)
      Returns the message that contains a message code.
      Parameters:
      args - the arguments that corresponds to replacement parameters
      Returns:
      the message
    • getSimpleMessage

      String getSimpleMessage(Object... args)
      Returns the message that does not contains a message code.
      Parameters:
      args - the arguments that corresponds to replacement parameters
      Returns:
      the message