Package org.appng.api
Interface MessageParam
-
- All Known Implementing Classes:
ApplicationException
,BusinessException
,NoSuchRepositoryException
,NoSuchSiteException
public interface MessageParam
AMessageParam
provides a message key and optionally some message arguments which can be used when formatting a message withMessageFormat.format(String, Object...)
. The purpose is to make it easier to provide end-user friendly messages.- Author:
- Matthias Müller
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Object[]
getMessageArgs()
Returns the arguments for this message in order to be used withMessageFormat.format(String, Object...)
String
getMessageKey()
Returns the key for the message in order to retrieve the real message from aResourceBundle
.
-
-
-
Method Detail
-
getMessageKey
String getMessageKey()
Returns the key for the message in order to retrieve the real message from aResourceBundle
.- Returns:
- the key for this message
- See Also:
ResourceBundle.getString(String)
-
getMessageArgs
Object[] getMessageArgs()
Returns the arguments for this message in order to be used withMessageFormat.format(String, Object...)
- Returns:
- the arguments for the message
-
-