接口 PropertyEditorRegistrar
- 所有已知实现类:
ResourceEditorRegistrar
public interface PropertyEditorRegistrar
Interface for strategies that register customproperty editors
with 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
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 void
registerCustomEditors(PropertyEditorRegistry registry)
Register customPropertyEditors
with the givenPropertyEditorRegistry
.
方法详细资料
registerCustomEditors
void registerCustomEditors(PropertyEditorRegistry registry)
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).- 参数:
registry
- thePropertyEditorRegistry
to register the customPropertyEditors
with