Uses of Interface
org.springframework.context.i18n.LocaleContext
Package
Description
Abstraction for determining the current Locale,
plus global holder that exposes a thread-bound Locale.
-
Uses of LocaleContext in org.springframework.context.i18n
Modifier and TypeInterfaceDescriptioninterface
Extension ofLocaleContext
, adding awareness of the current time zone.Modifier and TypeClassDescriptionclass
Simple implementation of theLocaleContext
interface, always returning a specifiedLocale
.class
Simple implementation of theTimeZoneAwareLocaleContext
interface, always returning a specifiedLocale
andTimeZone
.Modifier and TypeMethodDescriptionstatic LocaleContext
LocaleContextHolder.getLocaleContext()
Return the LocaleContext associated with the current thread, if any.Modifier and TypeMethodDescriptionstatic Locale
LocaleContextHolder.getLocale
(LocaleContext localeContext) Return the Locale associated with the given user context, if any, or the system default Locale otherwise.static TimeZone
LocaleContextHolder.getTimeZone
(LocaleContext localeContext) Return the TimeZone associated with the given user context, if any, or the system default TimeZone otherwise.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.