类 DefaultPropertyEditorRegistrar

  • 所有已实现的接口:
    org.springframework.beans.PropertyEditorRegistrar
    直接已知子类:
    BeanWrapperFieldSetMapper

    public class DefaultPropertyEditorRegistrar
    extends java.lang.Object
    implements org.springframework.beans.PropertyEditorRegistrar
    A re-usable 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).
    作者:
    Dave Syer
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型方法说明
      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 the custom editors to register.
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 方法详细资料

      • 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 the custom editors to register.
        参数:
        customEditors - a map of Class to PropertyEditor (or class name to PropertyEditor).
        另请参阅:
        CustomEditorConfigurer.setCustomEditors(Map)