Interface PropertyEditorRegistrar
- All Known Implementing Classes:
 ResourceEditorRegistrar
public interface PropertyEditorRegistrar
Interface for strategies that register custom
property editors with a
property editor registry.
This is particularly useful when you need to use the same set of property editors in several situations: write a corresponding registrar and reuse that in each case.
- Since:
 - 1.2.6
 - Author:
 - Juergen Hoeller
 - See Also:
 
- 
Method Summary
Modifier and TypeMethodDescriptiondefault booleanIndicate whether this registrar exclusively overrides default editors rather than registering custom editors, intended to be applied lazily.voidregisterCustomEditors(PropertyEditorRegistry registry) Register customPropertyEditorswith the givenPropertyEditorRegistry. 
- 
Method Details
- 
registerCustomEditors
Register customPropertyEditorswith the givenPropertyEditorRegistry.The passed-in registry will usually be a
BeanWrapperor aDataBinder.It is expected that implementations will create brand new
PropertyEditorsinstances for each invocation of this method (sincePropertyEditorsare not threadsafe).- Parameters:
 registry- thePropertyEditorRegistryto register the customPropertyEditorswith
 - 
overridesDefaultEditors
default boolean overridesDefaultEditors()Indicate whether this registrar exclusively overrides default editors rather than registering custom editors, intended to be applied lazily.This has an impact on registrar handling in a bean factory: see
ConfigurableBeanFactory.addPropertyEditorRegistrar(PropertyEditorRegistrar).- Since:
 - 6.2.3
 - See Also:
 
 
 -