Package | Description |
---|---|
org.springframework.context.i18n |
Abstraction for determining the current Locale,
plus global holder that exposes a thread-bound Locale.
|
Modifier and Type | Class and Description |
---|---|
class |
SimpleLocaleContext
Simple implementation of the
LocaleContext interface,
always returning a specified Locale . |
Modifier and Type | Method and Description |
---|---|
static LocaleContext |
LocaleContextHolder.getLocaleContext()
Return the LocaleContext associated with the current thread, if any.
|
Modifier and Type | Method and Description |
---|---|
static void |
LocaleContextHolder.setLocaleContext(LocaleContext localeContext)
Associate the given LocaleContext with the current thread,
not exposing it as inheritable for child threads.
|
static void |
LocaleContextHolder.setLocaleContext(LocaleContext localeContext,
boolean inheritable)
Associate the given LocaleContext with the current thread.
|
Copyright © 2025. All rights reserved.