java.lang.Object | |
↳ | org.springframework.context.i18n.SimpleLocaleContext |
Simple implementation of the LocaleContext
interface,
always returning a specified Locale
.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a new SimpleLocaleContext that exposes the specified Locale.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Return the current Locale, which can be fixed or determined dynamically,
depending on the implementation strategy.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.context.i18n.LocaleContext
|
Create a new SimpleLocaleContext that exposes the specified Locale.
Every getLocale()
will return this Locale.
locale | the Locale to expose |
---|
Return the current Locale, which can be fixed or determined dynamically, depending on the implementation strategy.