org.shept.org.springframework.web.servlet.mvc.support
Class ConfigurableLocaleDependentFormatResolver

java.lang.Object
  extended by org.shept.org.springframework.web.servlet.mvc.support.ConfigurableLocaleDependentFormatResolver
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean

public class ConfigurableLocaleDependentFormatResolver
extends Object
implements org.springframework.beans.factory.InitializingBean

Version:
$$Id: ConfigurableLocaleDependentFormatResolver.java 34 2010-08-20 16:46:49Z aha $$
Author:
Andi

Field Summary
private  Map<Locale,Map<DateTimeLocaleConstants,String>> dateTimeLocales
           
private  Locale defaultLocale
           
protected  org.apache.commons.logging.Log logger
          Logger that is available to subclasses
 
Constructor Summary
ConfigurableLocaleDependentFormatResolver()
           
 
Method Summary
 void afterPropertiesSet()
           
protected  Map<DateTimeLocaleConstants,String> getDateTimeLocaleConstants(Locale loc)
           
 String resolveProperty(Locale loc, DateTimeLocaleConstants property)
           
 void setDateTimeLocales(Map<Locale,Map<DateTimeLocaleConstants,String>> locales)
           
 void setDefaultLocale(Locale defaultLocale)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected final org.apache.commons.logging.Log logger
Logger that is available to subclasses


defaultLocale

private Locale defaultLocale

dateTimeLocales

private Map<Locale,Map<DateTimeLocaleConstants,String>> dateTimeLocales
Constructor Detail

ConfigurableLocaleDependentFormatResolver

public ConfigurableLocaleDependentFormatResolver()
Method Detail

getDateTimeLocaleConstants

protected Map<DateTimeLocaleConstants,String> getDateTimeLocaleConstants(Locale loc)

resolveProperty

public String resolveProperty(Locale loc,
                              DateTimeLocaleConstants property)

setDateTimeLocales

public void setDateTimeLocales(Map<Locale,Map<DateTimeLocaleConstants,String>> locales)
Parameters:
dateTimeLocales - the dateTimeLocales to set

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
Exception

setDefaultLocale

public void setDefaultLocale(Locale defaultLocale)
Parameters:
defaultLocale - the defaultLocale to set


Copyright © 2011. All Rights Reserved.