private static class CustomEditorConfigurer.SharedPropertyEditorRegistrar extends java.lang.Object implements PropertyEditorRegistrar
Modifier and Type | Field and Description |
---|---|
private java.lang.Class |
requiredType |
private java.beans.PropertyEditor |
sharedEditor |
Constructor and Description |
---|
SharedPropertyEditorRegistrar(java.lang.Class requiredType,
java.beans.PropertyEditor sharedEditor) |
Modifier and Type | Method and Description |
---|---|
void |
registerCustomEditors(PropertyEditorRegistry registry)
Register custom
PropertyEditors with
the given PropertyEditorRegistry . |
private final java.lang.Class requiredType
private final java.beans.PropertyEditor sharedEditor
public SharedPropertyEditorRegistrar(java.lang.Class requiredType, java.beans.PropertyEditor sharedEditor)
public void registerCustomEditors(PropertyEditorRegistry registry)
PropertyEditorRegistrar
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).
registerCustomEditors
in interface PropertyEditorRegistrar
registry
- the PropertyEditorRegistry
to register the
custom PropertyEditors
with