@Scope(value="perthread") public class ThreadLocaleImpl extends Object implements ThreadLocale
| Constructor and Description |
|---|
ThreadLocaleImpl() |
| Modifier and Type | Method and Description |
|---|---|
Locale |
getLocale()
Returns the thread's locale, which will be the JVM's default locale, until
ThreadLocale.setLocale(Locale) is
invoked. |
void |
setLocale(Locale locale)
Updates the locale for the current thread.
|
public ThreadLocaleImpl()
public Locale getLocale()
ThreadLocaleThreadLocale.setLocale(Locale) is
invoked.getLocale in interface ThreadLocalepublic void setLocale(Locale locale)
ThreadLocalesetLocale in interface ThreadLocalelocale - the new locale (may not be null)5.6.4 - Copyright © 2003-2021 The Apache Software Foundation.