Class DefaultPropertyEditorRegistrar
- java.lang.Object
- org.springframework.batch.support.DefaultPropertyEditorRegistrar
- All Implemented Interfaces:
org.springframework.beans.PropertyEditorRegistrar
- Direct Known Subclasses:
BeanWrapperFieldSetMapper
public class DefaultPropertyEditorRegistrar extends java.lang.Object implements org.springframework.beans.PropertyEditorRegistrarA re-usablePropertyEditorRegistrarthat can be used wherever one needs to register customPropertyEditorinstances with aPropertyEditorRegistry(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).- Author:
- Dave Syer
Constructor Summary
Constructors Constructor Description DefaultPropertyEditorRegistrar()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidregisterCustomEditors(org.springframework.beans.PropertyEditorRegistry registry)Register the custom editors with the given registry.voidsetCustomEditors(java.util.Map<? extends java.lang.Object,? extends java.beans.PropertyEditor> customEditors)Specify thecustom editorsto register.
Method Detail
registerCustomEditors
public void registerCustomEditors(org.springframework.beans.PropertyEditorRegistry registry)
Register the custom editors with the given registry.- Specified by:
registerCustomEditorsin interfaceorg.springframework.beans.PropertyEditorRegistrar- See Also:
PropertyEditorRegistrar.registerCustomEditors(org.springframework.beans.PropertyEditorRegistry)
setCustomEditors
public void setCustomEditors(java.util.Map<? extends java.lang.Object,? extends java.beans.PropertyEditor> customEditors)
Specify thecustom editorsto register.- Parameters:
customEditors- a map of Class to PropertyEditor (or class name to PropertyEditor).- See Also:
CustomEditorConfigurer.setCustomEditors(Map)