|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.loom.i18n.ReloadableMessagesRepositoryFactory
public class ReloadableMessagesRepositoryFactory
MessagesRepository instance used while in development. This instance will check if any resource has been modified and reload the contents if needed.
| Constructor Summary | |
|---|---|
ReloadableMessagesRepositoryFactory()
|
|
| Method Summary | |
|---|---|
void |
addBrowserMessage(java.lang.String messageKey)
Add a JSON message key. |
java.util.Locale |
getDefaultLocale()
|
MessagesRepositoryFactory |
getDelegate()
|
MessagesRepository |
getRepository(java.util.Locale locale)
Return the MessagesRepository instance corresponding to this Locale. |
void |
setBrowserMessages(java.util.Set<java.lang.String> browserMessages)
Replace the current set of JSON keys. |
void |
setDelegate(MessagesRepositoryFactory delegate)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReloadableMessagesRepositoryFactory()
| Method Detail |
|---|
public MessagesRepository getRepository(java.util.Locale locale)
MessagesRepositoryFactory
getRepository in interface MessagesRepositoryFactorypublic void addBrowserMessage(java.lang.String messageKey)
MessagesRepositoryFactory
addBrowserMessage in interface MessagesRepositoryFactorymessageKey - the message key to be addedpublic void setBrowserMessages(java.util.Set<java.lang.String> browserMessages)
MessagesRepositoryFactory
setBrowserMessages in interface MessagesRepositoryFactorybrowserMessages - the new set of JSON keyspublic java.util.Locale getDefaultLocale()
getDefaultLocale in interface MessagesRepositoryFactorypublic MessagesRepositoryFactory getDelegate()
@Inject
public void setDelegate(@Delegate
MessagesRepositoryFactory delegate)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||