|
From: Daniel P. <po...@ci...> - 2004-02-25 15:53:11
|
I'd like to suggest adding a convenience BeanFactoryPostProcessor
implementation to org.springframework.beans.factory.config to register
custom PropertyEditors. This seems like a very common need and an easy
addition. Maybe something like:
<bean id="customEditorConfigurer"
class="org.springframework.beans.factory.config.CustomEditorConfigurer">
<property name="customEditors">
<map>
<entry key="java.util.Date">
<value>com.acme.MyCustomDateEditor</value>i
</entry>
</map>
</property>
</bean>
The CustomEditorConfigurer bean would just iterate over the map entries
and call beanFactory.registerCustomerEditor() for each using the
specified property class and custom editor.
Seems like a simple and useful addition to the core framework.
Any thoughts?
Daniel
|