org.shept.org.springframework.web.servlet.mvc.support
Class ConfigurableLocaleDependentFormatResolver
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
ConfigurableLocaleDependentFormatResolver
public ConfigurableLocaleDependentFormatResolver()
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.