| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hivemind.impl.AbstractMessages
org.apache.hivemind.impl.ModuleMessages
public class ModuleMessages
An implementation of Messages that obtains messages from a
 MessageFinder, in a locale provided by the
 ThreadLocale service.
| Constructor Summary | |
|---|---|
| ModuleMessages(MessageFinder messageFinder,
                             ThreadLocale threadLocale) | |
| Method Summary | |
|---|---|
| protected  java.lang.String | findMessage(java.lang.String key)Concrete implementations must implement this method. | 
| protected  java.util.Locale | getLocale()Concrete implementations must provide a non-null Locale. | 
| Methods inherited from class org.apache.hivemind.impl.AbstractMessages | 
|---|
| containsMessage, format, format, format, format, getMessage | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public ModuleMessages(MessageFinder messageFinder,
                      ThreadLocale threadLocale)
| Method Detail | 
|---|
protected java.util.Locale getLocale()
AbstractMessages
getLocale in class AbstractMessagesprotected java.lang.String findMessage(java.lang.String key)
AbstractMessages
 Note: starting with release 1.2, it is no longer considered an error if the key does not
 match a known message (i.e., due to AbstractMessages.containsMessage(String)). Prior to 1.2, some
 implementations would log an error in that situation.
findMessage in class AbstractMessages| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||