Example usage for Java org.springframework.context.i18n LocaleContextHolder fields, constructors, methods, implement or subclass
The text is from its open source code.
Locale | getLocale() Return the Locale associated with the current thread, if any, or the system default Locale otherwise. |
LocaleContext | getLocaleContext() Return the LocaleContext associated with the current thread, if any. |
void | resetLocaleContext() Reset the LocaleContext for the current thread. |
void | setLocale(@Nullable Locale locale) Associate the given Locale with the current thread, preserving any TimeZone that may have been set already. |
void | setLocale(@Nullable Locale locale, boolean inheritable) Associate the given Locale with the current thread, preserving any TimeZone that may have been set already. |
void | setLocaleContext(@Nullable LocaleContext localeContext) Associate the given LocaleContext with the current thread, not exposing it as inheritable for child threads. |