类 SimpleLocaleContext
java.lang.Object
cn.taketoday.core.i18n.SimpleLocaleContext
- 所有已实现的接口:
LocaleContext
- 直接已知子类:
SimpleTimeZoneAwareLocaleContext
Simple implementation of the
LocaleContext interface,
always returning a specified Locale.- 从以下版本开始:
- 4.0
- 作者:
- Juergen Hoeller
- 另请参阅:
-
构造器概要
构造器构造器说明SimpleLocaleContext(Locale locale) Create a new SimpleLocaleContext that exposes the specified Locale. -
方法概要
-
构造器详细资料
-
SimpleLocaleContext
Create a new SimpleLocaleContext that exposes the specified Locale. EverygetLocale()call will return this Locale.- 参数:
locale- the Locale to expose, ornullfor no specific one
-
-
方法详细资料
-
getLocale
从接口复制的说明:LocaleContextReturn the current Locale, which can be fixed or determined dynamically, depending on the implementation strategy.- 指定者:
getLocale在接口中LocaleContext- 返回:
- the current Locale, or
nullif no specific Locale associated
-
toString
-