站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Spring Framework 1.2.9 API 文档英文版

SimpleLocaleContext (Spring Framework) - Spring Framework 1.2.9 API 文档英文版


org.springframework.context.i18n
Class SimpleLocaleContext

java.lang.Object
  extended by 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

Constructor Summary
SimpleLocaleContext(Locale locale)
          Create a new SimpleLocaleContext that exposes the specified Locale.
 
Method Summary
 Locale getLocale()
          Return the current Locale, which can be fixed or determined dynamically, depending on the implementation strategy.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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
Method Detail

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


Copyright (c) 2002-2007 The Spring Framework Project.