Package org.springframework.beans
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 different situations: write a corresponding registrar and reuse that in each case.
- Since:
- 1.2.6
- Author:
- Juergen Hoeller
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
registerCustomEditors
(PropertyEditorRegistry registry) Register customPropertyEditors
with the givenPropertyEditorRegistry
.
-
Method Details
-
registerCustomEditors
Register customPropertyEditors
with the givenPropertyEditorRegistry
.The passed-in registry will usually be a
BeanWrapper
or aDataBinder
.It is expected that implementations will create brand new
PropertyEditors
instances for each invocation of this method (sincePropertyEditors
are not threadsafe).- Parameters:
registry
- thePropertyEditorRegistry
to register the customPropertyEditors
with
-