接口 LocaleContext

所有已知子接口:
TimeZoneAwareLocaleContext
所有已知实现类:
SimpleLocaleContext, SimpleTimeZoneAwareLocaleContext

public interface LocaleContext
Strategy interface for determining the current Locale.

A LocaleContext instance can be associated with a thread via the LocaleContextHolder class.

从以下版本开始:
4.0
作者:
Juergen Hoeller
另请参阅:
  • 方法概要

    修饰符和类型
    方法
    说明
    Return the current Locale, which can be fixed or determined dynamically, depending on the implementation strategy.
  • 方法详细资料

    • getLocale

      @Nullable Locale getLocale()
      Return the current Locale, which can be fixed or determined dynamically, depending on the implementation strategy.
      返回:
      the current Locale, or null if no specific Locale associated