org.springframework.context.i18n
Class SimpleLocaleContext
java.lang.Object
org.springframework.context.i18n.SimpleLocaleContext
- All Implemented Interfaces:
- LocaleContext
public class SimpleLocaleContext
- extends Object
- implements LocaleContext
Simple implementation of the LocaleContext interface,
always returning a specified Locale.
- Since:
- 1.2
- Author:
- Juergen Hoeller
|
Method Summary |
Locale |
getLocale()
Return the current Locale, which can be fixed or determined dynamically,
depending on the implementation strategy. |
String |
toString()
|
SimpleLocaleContext
public SimpleLocaleContext(Locale locale)
- Create a new SimpleLocaleContext that exposes the specified Locale.
Every
getLocale() will return this Locale.
- Parameters:
locale - the Locale to expose
getLocale
public Locale getLocale()
- Description copied from interface:
LocaleContext
- Return the current Locale, which can be fixed or determined dynamically,
depending on the implementation strategy.
- Specified by:
getLocale in interface LocaleContext
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2002-2008 The Spring Framework.