public class MessagesCache
extends java.lang.Object
| Constructor and Description |
|---|
MessagesCache(java.lang.String baseName,
java.lang.ClassLoader classLoader)
Constructs a new
MessagesCache. |
| Modifier and Type | Method and Description |
|---|---|
Messages |
forLocale(java.util.Locale locale)
Returns the messages for the specified locale.
|
public MessagesCache(java.lang.String baseName,
java.lang.ClassLoader classLoader)
MessagesCache.baseName - the base name of the resource bundleclassLoader - the class loader used to retrieve the resource bundlespublic Messages forLocale(java.util.Locale locale)
This method is thread-safe.
locale - the desired locale