Interface ThreadLocale
- All Known Implementing Classes:
ThreadLocaleImpl
public interface ThreadLocale
Stores the locale for the current thread. This value persists until
Registry.cleanupThread()
is
invoked.-
Method Summary
Modifier and TypeMethodDescriptionReturns the thread's locale, which will be the JVM's default locale, untilsetLocale(Locale)
is invoked.void
Updates the locale for the current thread.
-
Method Details
-
setLocale
Updates the locale for the current thread.- Parameters:
locale
- the new locale (may not be null)
-
getLocale
Returns the thread's locale, which will be the JVM's default locale, untilsetLocale(Locale)
is invoked.- Returns:
- the thread's locale
-