类 DefaultPropertyEditorRegistrar
- java.lang.Object
- org.springframework.batch.support.DefaultPropertyEditorRegistrar
- 所有已实现的接口:
org.springframework.beans.PropertyEditorRegistrar
- 直接已知子类:
BeanWrapperFieldSetMapper
public class DefaultPropertyEditorRegistrar extends java.lang.Object implements org.springframework.beans.PropertyEditorRegistrar
A re-usablePropertyEditorRegistrar
that can be used wherever one needs to register customPropertyEditor
instances 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).- 作者:
- Dave Syer
构造器概要
构造器 构造器 说明 DefaultPropertyEditorRegistrar()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 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 thecustom editors
to register.
构造器详细资料
DefaultPropertyEditorRegistrar
public DefaultPropertyEditorRegistrar()
方法详细资料
registerCustomEditors
public void registerCustomEditors(org.springframework.beans.PropertyEditorRegistry registry)
Register the custom editors with the given registry.- 指定者:
registerCustomEditors
在接口中org.springframework.beans.PropertyEditorRegistrar
- 另请参阅:
PropertyEditorRegistrar.registerCustomEditors(org.springframework.beans.PropertyEditorRegistry)
setCustomEditors
public void setCustomEditors(java.util.Map<? extends java.lang.Object,? extends java.beans.PropertyEditor> customEditors)
Specify thecustom editors
to register.- 参数:
customEditors
- a map of Class to PropertyEditor (or class name to PropertyEditor).- 另请参阅:
CustomEditorConfigurer.setCustomEditors(Map)