public class DefaultPropertyEditorRegistrar
extends java.lang.Object
implements org.springframework.beans.PropertyEditorRegistrar
PropertyEditorRegistrar
that can be used wherever one
needs to register custom PropertyEditor
instances with a
PropertyEditorRegistry
(like a bean wrapper, or a type converter). It
is not thread safe, but useful where one is confident that binding or
initialisation can only be single threaded (e.g in a standalone application
with no threads).Constructor and Description |
---|
DefaultPropertyEditorRegistrar() |
Modifier and Type | Method and Description |
---|---|
void |
registerCustomEditors(org.springframework.beans.PropertyEditorRegistry registry)
Register the custom editors with the given registry.
|
void |
setCustomEditors(java.util.Map<? extends java.lang.Object,? extends java.beans.PropertyEditor> customEditors)
Specify the
custom editors to register. |
public void registerCustomEditors(org.springframework.beans.PropertyEditorRegistry registry)
registerCustomEditors
in interface org.springframework.beans.PropertyEditorRegistrar
PropertyEditorRegistrar.registerCustomEditors(org.springframework.beans.PropertyEditorRegistry)
public void setCustomEditors(java.util.Map<? extends java.lang.Object,? extends java.beans.PropertyEditor> customEditors)
custom editors
to register.customEditors
- a map of Class to PropertyEditor (or class name to
PropertyEditor).CustomEditorConfigurer.setCustomEditors(Map)