Class DefaultPropertyEditorRegistrar

All Implemented Interfaces:
Direct Known Subclasses:

public class DefaultPropertyEditorRegistrar extends 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, Mahmoud Ben Hassine
  • Constructor Details

    • DefaultPropertyEditorRegistrar

      public DefaultPropertyEditorRegistrar()
  • Method Details

    • registerCustomEditors

      public void registerCustomEditors(org.springframework.beans.PropertyEditorRegistry registry)
      Register the custom editors with the given registry.
      Specified by:
      registerCustomEditors in interface org.springframework.beans.PropertyEditorRegistrar
      See Also:
      • PropertyEditorRegistrar.registerCustomEditors(org.springframework.beans.PropertyEditorRegistry)
    • setCustomEditors

      public void setCustomEditors(Map<?,? extends PropertyEditor> customEditors)
      Specify the custom editors to register.
      customEditors - a map of Class to PropertyEditor (or class name to PropertyEditor).
      See Also:
      • CustomEditorConfigurer.setCustomEditors(Map)