|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface LocaleAware
Implemented by an object that can be told what locale to use for subsequent operations. This is currently used by the Localized Resource builder: if the specified resource bundle is actually a Java class (as opposed to a property file) then the builder's runtime checks that class to see if it implements the LocaleAware interface; if so, it calls the setLocale method passing the requested Locale. This enables a single active resource bundle to load resources dynamically, e.g., from a database.
| Method Summary | |
|---|---|
java.util.Locale |
getLocale()
Return the currently selected Locale. |
void |
setLocale(java.util.Locale locale)
Use this locale for processing. |
| Method Detail |
|---|
java.util.Locale getLocale()
void setLocale(java.util.Locale locale)
locale - The requested Locale
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||