Package at.gv.egovernment.moaspss.util
Class Messages
java.lang.Object
at.gv.egovernment.moaspss.util.Messages
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetMessage(String messageId, Object[] parameters) Get the message corresponding to a given message ID.
-
Constructor Details
-
Messages
Create a newMessageobject containing the messages in the given resources.- Parameters:
resourceNames- The names of the resources containing the messages.locales- The corresponding locales.
-
-
Method Details
-
getMessage
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.
-