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