| java.lang.Object org.springframework.beans.PropertyEditorRegistrySupport
All known Subclasses: org.springframework.beans.SimpleTypeConverter, org.springframework.beans.AbstractPropertyAccessor,
Method Summary | |
protected void | copyCustomEditorsTo(PropertyEditorRegistry target, String nestedProperty) Copy the custom editors registered in this instance to the given target registry. | protected void | copyDefaultEditorsTo(PropertyEditorRegistrySupport target) Copy the default editors registered in this instance to the given target registry. | public PropertyEditor | findCustomEditor(Class requiredType, String propertyPath) | protected PropertyEditor | getDefaultEditor(Class requiredType) Retrieve the default editor for the given property type, if any. | protected Class | getPropertyType(String propertyPath) Determine the property type for the given property path. | protected Class | guessPropertyTypeFromEditors(String propertyName) Guess the property type of the specified property from the registered
custom editors (provided that they were registered for a specific type). | public boolean | hasCustomEditorForElement(Class elementType, String propertyPath) Determine whether this registry contains a custom editor
for the specified array/collection element. | public boolean | isSharedEditor(PropertyEditor propertyEditor) Check whether the given editor instance is a shared editor, that is,
whether the given editor instance might be used concurrently. | public void | registerCustomEditor(Class requiredType, PropertyEditor propertyEditor) | public void | registerCustomEditor(Class requiredType, String propertyPath, PropertyEditor propertyEditor) | protected void | registerDefaultEditors() Activate the default editors for this registry instance,
allowing for lazily registering default editors when needed. | public void | registerSharedEditor(Class requiredType, PropertyEditor propertyEditor) Register the given custom property editor for all properties
of the given type, indicating that the given instance is a
shared editor that might be used concurrently. | public void | useConfigValueEditors() Activate config value editors which are only intended for configuration purposes,
such as
org.springframework.beans.propertyeditors.StringArrayPropertyEditor .
Those editors are not registered by default simply because they are in
general inappropriate for data binding purposes. |
copyCustomEditorsTo | protected void copyCustomEditorsTo(PropertyEditorRegistry target, String nestedProperty)(Code) | | Copy the custom editors registered in this instance to the given target registry.
Parameters: target - the target registry to copy to Parameters: nestedProperty - the nested property path of the target registry, if any.If this is non-null, only editors registered for a path below this nested propertywill be copied. |
copyDefaultEditorsTo | protected void copyDefaultEditorsTo(PropertyEditorRegistrySupport target)(Code) | | Copy the default editors registered in this instance to the given target registry.
Parameters: target - the target registry to copy to |
getPropertyType | protected Class getPropertyType(String propertyPath)(Code) | | Determine the property type for the given property path.
Called by
PropertyEditorRegistrySupport.findCustomEditor if no required type has been specified,
to be able to find a type-specific editor even if just given a property path.
The default implementation always returns null .
BeanWrapperImpl overrides this with the standard getPropertyType
method as defined by the BeanWrapper interface.
Parameters: propertyPath - the property path to determine the type for the type of the property, or null if not determinable See Also: BeanWrapper.getPropertyType(String) |
guessPropertyTypeFromEditors | protected Class guessPropertyTypeFromEditors(String propertyName)(Code) | | Guess the property type of the specified property from the registered
custom editors (provided that they were registered for a specific type).
Parameters: propertyName - the name of the property the property type, or null if not determinable |
hasCustomEditorForElement | public boolean hasCustomEditorForElement(Class elementType, String propertyPath)(Code) | | Determine whether this registry contains a custom editor
for the specified array/collection element.
Parameters: elementType - the target type of the element(can be null if not known) Parameters: propertyPath - the property path (typically of the array/collection;can be null if not known) whether a matching custom editor has been found |
isSharedEditor | public boolean isSharedEditor(PropertyEditor propertyEditor)(Code) | | Check whether the given editor instance is a shared editor, that is,
whether the given editor instance might be used concurrently.
Parameters: propertyEditor - the editor instance to check whether the editor is a shared instance |
registerDefaultEditors | protected void registerDefaultEditors()(Code) | | Activate the default editors for this registry instance,
allowing for lazily registering default editors when needed.
|
registerSharedEditor | public void registerSharedEditor(Class requiredType, PropertyEditor propertyEditor)(Code) | | Register the given custom property editor for all properties
of the given type, indicating that the given instance is a
shared editor that might be used concurrently.
Parameters: requiredType - the type of the property Parameters: propertyEditor - the shared editor to register |
|
|