Package org.springframework.beans
Interface PropertyEditorRegistrar
- All Known Implementing Classes:
ResourceEditorRegistrar
public interface PropertyEditorRegistrar
Interface for strategies that register customproperty editorswith aproperty editor registry.This is particularly useful when you need to use the same set of property editors in several different situations: write a corresponding registrar and reuse that in each case.
- Since:
- 1.2.6
- Author:
- Juergen Hoeller
- See Also:
PropertyEditorRegistry,PropertyEditor
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidregisterCustomEditors(PropertyEditorRegistry registry)Register customPropertyEditorswith the givenPropertyEditorRegistry.
Method Detail
registerCustomEditors
void registerCustomEditors(PropertyEditorRegistry registry)
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