org.shept.org.springframework.web.bind.support
Class DefaultComponentBindingInitializer

java.lang.Object
  extended by org.shept.org.springframework.web.bind.support.DefaultComponentBindingInitializer
All Implemented Interfaces:
ComponentBindingInitializer, org.springframework.beans.factory.InitializingBean

public class DefaultComponentBindingInitializer
extends Object
implements ComponentBindingInitializer, org.springframework.beans.factory.InitializingBean

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

Field Summary
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 Summary
DefaultComponentBindingInitializer()
           
 
Method Summary
 void afterPropertiesSet()
           
 Map<String,DateTimeLocaleConstants> getCalendarEditors()
           
 Map<String,PropertyEditorHolder> getCustomEditors()
           
 Map<String,DateTimeLocaleConstants> getDateEditors()
           
protected  String getFieldPath(String path, Map<String,CommandWrapper> pathMap)
           
 ConfigurableLocaleDependentFormatResolver getFormatResolver()
           
 Map<Class<?>,ComponentBindingInitializer> getInitializersForType()
           
 ComponentValidator getValidator()
           
 void initBinder(org.springframework.web.context.request.WebRequest request, ComponentDataBinder binder, String componentPath)
          Initialize the given DataBinder for the given request.
 boolean isFilterDetection()
           
 boolean isPageableListDetection()
           
 void setCalendarEditors(Map<String,DateTimeLocaleConstants> calendarEditors)
           
 void setCustomEditors(Map<String,PropertyEditorHolder> customEditorsForPath)
           
 void setDateEditors(Map<String,DateTimeLocaleConstants> dateEditors)
           
 void setFilterDetection(boolean filterDetection)
           
 void setFormatResolver(ConfigurableLocaleDependentFormatResolver formatResolver)
           
 void setInitializersForType(Map<Class<?>,ComponentBindingInitializer> initializersForType)
           
 void setPageableListDetection(boolean pageableListDetection)
           
 void setValidator(ComponentValidator validator)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

formatResolver

private ConfigurableLocaleDependentFormatResolver formatResolver

dateEditors

private Map<String,DateTimeLocaleConstants> dateEditors

calendarEditors

private Map<String,DateTimeLocaleConstants> calendarEditors

customEditors

private Map<String,PropertyEditorHolder> customEditors

initializersForType

private Map<Class<?>,ComponentBindingInitializer> initializersForType

validator

private ComponentValidator validator

pageableListDetection

private boolean pageableListDetection

filterDetection

private boolean filterDetection
Constructor Detail

DefaultComponentBindingInitializer

public DefaultComponentBindingInitializer()
Method Detail

initBinder

public void initBinder(org.springframework.web.context.request.WebRequest request,
                       ComponentDataBinder binder,
                       String componentPath)
Description copied from interface: ComponentBindingInitializer
Initialize the given DataBinder for the given request.

Specified by:
initBinder in interface ComponentBindingInitializer
Parameters:
request - the web request that the data binding happens within
binder - the DataBinder to initialize
componentPath - the path within the bound object

getFieldPath

protected String getFieldPath(String path,
                              Map<String,CommandWrapper> pathMap)

getCustomEditors

public Map<String,PropertyEditorHolder> getCustomEditors()
Returns:
the customEditors

setCustomEditors

public void setCustomEditors(Map<String,PropertyEditorHolder> customEditorsForPath)
Parameters:
customEditors - the customEditors to set

getDateEditors

public Map<String,DateTimeLocaleConstants> getDateEditors()
Returns:
the dateEditors

setDateEditors

public void setDateEditors(Map<String,DateTimeLocaleConstants> dateEditors)
Parameters:
dateEditors - the dateEditors to set

getCalendarEditors

public Map<String,DateTimeLocaleConstants> getCalendarEditors()
Returns:
the dateEditors

setCalendarEditors

public void setCalendarEditors(Map<String,DateTimeLocaleConstants> calendarEditors)
Parameters:
dateEditors - the dateEditors to set

getFormatResolver

public ConfigurableLocaleDependentFormatResolver getFormatResolver()
Returns:
the formatResolver

setFormatResolver

public void setFormatResolver(ConfigurableLocaleDependentFormatResolver formatResolver)
Parameters:
formatResolver - the formatResolver to set

isPageableListDetection

public boolean isPageableListDetection()
Returns:
the pageableListDetection

setPageableListDetection

public void setPageableListDetection(boolean pageableListDetection)
Parameters:
pageableListDetection - the pageableListDetection to set

getInitializersForType

public Map<Class<?>,ComponentBindingInitializer> getInitializersForType()
Returns:
the initializersForType

setInitializersForType

public void setInitializersForType(Map<Class<?>,ComponentBindingInitializer> initializersForType)
Parameters:
initializersForType - the initializersForType to set

isFilterDetection

public boolean isFilterDetection()
Returns:
the filterDetection

setFilterDetection

public void setFilterDetection(boolean filterDetection)
Parameters:
filterDetection - the filterDetection to set

afterPropertiesSet

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

getValidator

public ComponentValidator getValidator()
Returns:
the validator

setValidator

public void setValidator(ComponentValidator validator)
Parameters:
validator - the validator to set


Copyright © 2011. All Rights Reserved.