| 
 | ||||||||||
| 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.MessageFormatter
public class MessageFormatter
A wrapper around ResourceBundle that makes it easier to access and format
 messages.
| Constructor Summary | |
|---|---|
| MessageFormatter(java.lang.Class referenceClass)Assumes that the bundle name is the same as the reference class, with "Messages" stripped off, and "Strings" appended. | |
| MessageFormatter(java.lang.Class referenceClass,
                                 java.lang.String name) | |
| MessageFormatter(org.apache.commons.logging.Log log,
                                 java.lang.Class referenceClass,
                                 java.lang.String name)Deprecated. in 1.2, to be removed in a later release. Use MessageFormatter(Class, String)instead. | |
| MessageFormatter(org.apache.commons.logging.Log log,
                                 java.util.ResourceBundle bundle)Deprecated. in 1.2, to be removed in a later release. Use MessageFormatter(ResourceBundle)instead. | |
| MessageFormatter(org.apache.commons.logging.Log log,
                                 java.lang.String bundleName)Deprecated. in 1.2, to be removed in a later release. Use MessageFormatter(String)instead. | |
| MessageFormatter(java.util.ResourceBundle bundle) | |
| MessageFormatter(java.lang.String bundleName) | |
| 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 MessageFormatter(java.util.ResourceBundle bundle)
public MessageFormatter(org.apache.commons.logging.Log log,
                        java.util.ResourceBundle bundle)
MessageFormatter(ResourceBundle) instead.
public MessageFormatter(java.lang.Class referenceClass)
public MessageFormatter(java.lang.Class referenceClass,
                        java.lang.String name)
public MessageFormatter(org.apache.commons.logging.Log log,
                        java.lang.Class referenceClass,
                        java.lang.String name)
MessageFormatter(Class, String) instead.
public MessageFormatter(java.lang.String bundleName)
public MessageFormatter(org.apache.commons.logging.Log log,
                        java.lang.String bundleName)
MessageFormatter(String)
             instead.
| Method Detail | 
|---|
protected 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 AbstractMessagesprotected java.util.Locale getLocale()
AbstractMessages
getLocale in class AbstractMessages| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||