Class Messages

java.lang.Object
at.gv.egovernment.moaspss.util.Messages

public class Messages extends Object
Provides access to the system messages resource used for exception handling and logging messages. Messages must be provided as a resource bundle at the path.
  • Constructor Details

    • Messages

      public Messages(String[] resourceNames, Locale[] locales)
      Create a new Message object containing the messages in the given resources.
      Parameters:
      resourceNames - The names of the resources containing the messages.
      locales - The corresponding locales.
  • Method Details

    • getMessage

      public String getMessage(String messageId, Object[] parameters)
      Get the message corresponding to a given message ID.
      Parameters:
      messageId - The ID of the message.
      parameters - The parameters to fill in into the message arguments.
      Returns:
      The formatted message.