org.shept.org.springframework.web.bind.support
public class DefaultComponentBindingInitializer extends Object implements ComponentBindingInitializer, org.springframework.beans.factory.InitializingBean
| Modifier and Type | Field and Description |
|---|---|
private Map<String,DateTimeLocaleConstants> |
calendarEditors |
private Map<String,PropertyEditorHolder> |
customEditors |
private Map<String,DateTimeLocaleConstants> |
dateEditors |
private boolean |
filterDetection |
private ConfigurableLocaleDependentFormatResolver |
formatResolver |
private Map<Class<?>,ComponentBindingInitializer> |
initializersForType |
private boolean |
pageableListDetection |
private ComponentValidator |
validator |
| Constructor and Description |
|---|
DefaultComponentBindingInitializer() |
private ConfigurableLocaleDependentFormatResolver formatResolver
private Map<String,DateTimeLocaleConstants> dateEditors
private Map<String,DateTimeLocaleConstants> calendarEditors
private Map<String,PropertyEditorHolder> customEditors
private Map<Class<?>,ComponentBindingInitializer> initializersForType
private ComponentValidator validator
private boolean pageableListDetection
private boolean filterDetection
public void initBinder(org.springframework.web.context.request.WebRequest request,
ComponentDataBinder binder,
String componentPath)
ComponentBindingInitializerinitBinder in interface ComponentBindingInitializerrequest - the web request that the data binding happens withinbinder - the DataBinder to initializecomponentPath - the path within the bound objectprotected String getFieldPath(String path, Map<String,CommandWrapper> pathMap)
public Map<String,PropertyEditorHolder> getCustomEditors()
public void setCustomEditors(Map<String,PropertyEditorHolder> customEditorsForPath)
customEditors - the customEditors to setpublic Map<String,DateTimeLocaleConstants> getDateEditors()
public void setDateEditors(Map<String,DateTimeLocaleConstants> dateEditors)
dateEditors - the dateEditors to setpublic Map<String,DateTimeLocaleConstants> getCalendarEditors()
public void setCalendarEditors(Map<String,DateTimeLocaleConstants> calendarEditors)
dateEditors - the dateEditors to setpublic ConfigurableLocaleDependentFormatResolver getFormatResolver()
public void setFormatResolver(ConfigurableLocaleDependentFormatResolver formatResolver)
formatResolver - the formatResolver to setpublic boolean isPageableListDetection()
public void setPageableListDetection(boolean pageableListDetection)
pageableListDetection - the pageableListDetection to setpublic Map<Class<?>,ComponentBindingInitializer> getInitializersForType()
public void setInitializersForType(Map<Class<?>,ComponentBindingInitializer> initializersForType)
initializersForType - the initializersForType to setpublic boolean isFilterDetection()
public void setFilterDetection(boolean filterDetection)
filterDetection - the filterDetection to setpublic void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic ComponentValidator getValidator()
public void setValidator(ComponentValidator validator)
validator - the validator to setCopyright © 2014. All Rights Reserved.