Top Description Methods
org.springframework.beans

public Interface PropertyEditorRegistrar

Known Direct Implementers
org.springframework.beans.support.ResourceEditorRegistrar

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.

Author
Juergen Hoeller
Since
1.2.6
See Also
PropertyEditorRegistry, java.beans.PropertyEditor

Method Summary

Modifier and TypeMethod and Description
public void
registerCustomEditors(PropertyEditorRegistry
the PropertyEditorRegistry to register the custom PropertyEditors with
registry
)

Register custom PropertyEditors with the given PropertyEditorRegistry.

Method Detail

registerCustomEditorsback to summary
public void registerCustomEditors(PropertyEditorRegistry registry)

Register custom PropertyEditors with the given PropertyEditorRegistry.

The passed-in registry will usually be a BeanWrapper or a DataBinder.

It is expected that implementations will create brand new PropertyEditors instances for each invocation of this method (since PropertyEditors are not threadsafe).

Parameters
registry:PropertyEditorRegistry

the PropertyEditorRegistry to register the custom PropertyEditors with