public class

SimpleLocaleContext

extends Object
implements LocaleContext
java.lang.Object
   ↳ org.springframework.context.i18n.SimpleLocaleContext

Class Overview

Simple implementation of the LocaleContext interface, always returning a specified Locale.

Summary

Public Constructors
SimpleLocaleContext(Locale locale)
Create a new SimpleLocaleContext that exposes the specified Locale.
Public Methods
Locale getLocale()
Return the current Locale, which can be fixed or determined dynamically, depending on the implementation strategy.
String toString()
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.springframework.context.i18n.LocaleContext

Public Constructors

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

Public Methods

public Locale getLocale ()

Return the current Locale, which can be fixed or determined dynamically, depending on the implementation strategy.

public String toString ()