|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jvnet.localizer.LocaleProvider
public abstract class LocaleProvider
Determines the locale, normally from the context.
For example, in webapps, you might use the current request's Accept-Language
header, or maybe it's just an invocation to Locale.getDefault().
A single instance of LocaleProvider is maintained in this class
for the use by ResourceBundleHolder.
| Field Summary | |
|---|---|
static LocaleProvider |
DEFAULT
LocaleProvider that uses Locale.getDefault(). |
| Constructor Summary | |
|---|---|
LocaleProvider()
|
|
| Method Summary | |
|---|---|
abstract java.util.Locale |
get()
Determines the locale to be used. |
static java.util.Locale |
getLocale()
Short for getProvider().get() |
static LocaleProvider |
getProvider()
Gets the currently installed system-wide LocaleProvider. |
static void |
setProvider(LocaleProvider p)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final LocaleProvider DEFAULT
LocaleProvider that uses Locale.getDefault().
| Constructor Detail |
|---|
public LocaleProvider()
| Method Detail |
|---|
public abstract java.util.Locale get()
public static void setProvider(LocaleProvider p)
public static LocaleProvider getProvider()
LocaleProvider.
public static java.util.Locale getLocale()
getProvider().get()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||