Interface AbstractEntityPropertiesService.MessageBundle
-
- All Known Implementing Classes:
EntityPropertiesServiceSimple.ResourceBundleMessageSource,EntityPropertiesServiceSpringImpl.SpringMessageBundle
- Enclosing class:
- AbstractEntityPropertiesService
public static interface AbstractEntityPropertiesService.MessageBundle
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<String>getPropertyKeys(Locale locale)Get all the keys for a specific LocaleStringgetPropertyMessage(String key, Object[] args, Locale locale)Try to resolve the message.
-
-
-
Method Detail
-
getPropertyMessage
String getPropertyMessage(String key, Object[] args, Locale locale)
Try to resolve the message. Treat as an error if the message can't be found.- Parameters:
key- the code to lookup up, such as 'calculator.noRateSet'args- Array of arguments that will be filled in for params within the message (params look like "{0}", "{1,date}", "{2,time}" within a message), ornullif none.locale- the Locale in which to do the lookup- Returns:
- the resolved message
- Throws:
IllegalArgumentException- is the arguments are invalidMissingResourceException- if the message wasn't found
-
-