接口 PropertyEditorRegistrar
- 所有已知实现类:
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.
- 从以下版本开始:
- 1.2.6
- 作者:
- Juergen Hoeller
- 另请参阅:
PropertyEditorRegistry,PropertyEditor
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 voidregisterCustomEditors(PropertyEditorRegistry registry)Register customPropertyEditorswith the givenPropertyEditorRegistry.
方法详细资料
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).- 参数:
registry- thePropertyEditorRegistryto register the customPropertyEditorswith