Interface InternationalMessageService
- All Known Implementing Classes:
InternationalMessageServiceImpl
public interface InternationalMessageService
Service that retrieves a message from the database. This can be used to override localized message bundle values from
Spring.
- Author:
- Elbert Bautista (elbertbautista)
-
Method Summary
Modifier and TypeMethodDescriptionvoidremoveFromCache(InternationalMessage internationalMessage, String profileId) resolveInternationalMessage(String name, Locale locale) Follows the same principles of Resource Bundle look-ups byLocale.
-
Method Details
-
resolveInternationalMessage
Follows the same principles of Resource Bundle look-ups byLocale. It will calculate the various locale code strings based on the passed inLocaleand will check the most specific code first.For example, if you pass in Locale("en", "GB"), it will attempt to find a message source with the
Locale.getLocaleCode()of "en_GB" first, followed by one for just "en". It will return null if nothing is found.- Parameters:
name-locale-- Returns:
- - a DB InternationalMessage or null if not found.
-
findById
-
removeFromCache
-