org.springframework.beans.factory.config
Class CustomEditorConfigurer.SharedPropertyEditorRegistrar

java.lang.Object
  extended by org.springframework.beans.factory.config.CustomEditorConfigurer.SharedPropertyEditorRegistrar
All Implemented Interfaces:
PropertyEditorRegistrar
Enclosing class:
CustomEditorConfigurer

private static class CustomEditorConfigurer.SharedPropertyEditorRegistrar
extends java.lang.Object
implements PropertyEditorRegistrar

PropertyEditorRegistrar that registers a (deprecated) shared editor.


Field Summary
private  java.lang.Class requiredType
           
private  java.beans.PropertyEditor sharedEditor
           
 
Constructor Summary
CustomEditorConfigurer.SharedPropertyEditorRegistrar(java.lang.Class requiredType, java.beans.PropertyEditor sharedEditor)
           
 
Method Summary
 void registerCustomEditors(PropertyEditorRegistry registry)
          Register custom PropertyEditors with the given PropertyEditorRegistry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

requiredType

private final java.lang.Class requiredType

sharedEditor

private final java.beans.PropertyEditor sharedEditor
Constructor Detail

CustomEditorConfigurer.SharedPropertyEditorRegistrar

public CustomEditorConfigurer.SharedPropertyEditorRegistrar(java.lang.Class requiredType,
                                                            java.beans.PropertyEditor sharedEditor)
Method Detail

registerCustomEditors

public void registerCustomEditors(PropertyEditorRegistry registry)
Description copied from interface: PropertyEditorRegistrar
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).

Specified by:
registerCustomEditors in interface PropertyEditorRegistrar
Parameters:
registry - the PropertyEditorRegistry to register the custom PropertyEditors with