org.shept.org.springframework.web.servlet.mvc.support
public class ConfigurableLocaleDependentFormatResolver extends Object implements org.springframework.beans.factory.InitializingBean
| Modifier and Type | Field and Description |
|---|---|
private Map<Locale,Map<DateTimeLocaleConstants,String>> |
dateTimeLocales |
private Locale |
defaultLocale |
protected org.apache.commons.logging.Log |
logger
Logger that is available to subclasses
|
| Constructor and Description |
|---|
ConfigurableLocaleDependentFormatResolver() |
| Modifier and Type | Method and Description |
|---|---|
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) |
protected final org.apache.commons.logging.Log logger
private Locale defaultLocale
private Map<Locale,Map<DateTimeLocaleConstants,String>> dateTimeLocales
public ConfigurableLocaleDependentFormatResolver()
protected Map<DateTimeLocaleConstants,String> getDateTimeLocaleConstants(Locale loc)
public String resolveProperty(Locale loc, DateTimeLocaleConstants property)
public void setDateTimeLocales(Map<Locale,Map<DateTimeLocaleConstants,String>> locales)
dateTimeLocales - the dateTimeLocales to setpublic void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic void setDefaultLocale(Locale defaultLocale)
defaultLocale - the defaultLocale to setCopyright © 2014. All Rights Reserved.