@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()
ThreadLocale
ThreadLocale.setLocale(Locale)
is
invoked.getLocale
in interface ThreadLocale
public void setLocale(Locale locale)
ThreadLocale
setLocale
in interface ThreadLocale
locale
- the new locale (may not be null)5.6.3 - Copyright © 2003-2021 The Apache Software Foundation.