|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--multex.MultexLocale
MsgText.causeMarker
.
This class showed to be unnecessary, as we can get the java.util.Locale
from the java.util.ResourceBundle, and we can get the cause message pattern
from the java.util.ResourceBundle, too, if we provide it in the corresponding
.properties file.
Packages all locale specific adjustments for dynamic internationalization. In systems like web servers each request has to be answered in the language of the requester. For correctly reporting an exception with its causal chain you have to provide the ResourceBundle for the exception message texts, the Locale controlling the message parameter formatting, and the String for marking each cause message in the chain.
Field Summary | |
static MultexLocale |
nullLocale
Deprecated. A predefined MultexLocale having no messages, the default java.util.Locale and the default cause marker. |
Constructor Summary | |
MultexLocale(java.util.ResourceBundle i_messages,
java.util.Locale i_locale,
java.lang.String i_causeMarker)
Deprecated. Initializes the object with message text patterns, a locale, and a cause marker. |
Method Summary | |
java.lang.String |
getCauseMarker()
Deprecated. Returns the String marking each cause message in an exception message chain. |
java.util.Locale |
getLocale()
Deprecated. Returns the Locale controlling the message parameter formatting by java.text.MessageFormat. |
java.util.ResourceBundle |
getMessages()
Deprecated. Returns the message text patterns to be used for reporting each exceptions. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final MultexLocale nullLocale
Constructor Detail |
public MultexLocale(java.util.ResourceBundle i_messages, java.util.Locale i_locale, java.lang.String i_causeMarker)
i_messages
- If null, message text patterns are taken from the MultexException object itself.i_locale
- If null, defaults to the default Locale.i_causeMarker
- If null, defaults to MsgText.causeMarker
.getMessages()
,
getLocale()
,
getCauseMarker()
Method Detail |
public java.util.ResourceBundle getMessages()
public java.util.Locale getLocale()
public java.lang.String getCauseMarker()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |