How do I register a custom editor with just a specific bean property. See the config below for the Trade object. e.g. Trade.totalAmount
I want only the Trade.totalAmount property to use the custom editor (ImpliedScaleBigDecimalEditor) and the other properties to use the Spring default.
What is the best way to do this (assuming it's possible) ?
<bean id="tradeFieldSetMapper"
class="org.springframework.batch.item.file.mapping .BeanWrapperFieldSetMapper">
<property name="prototypeBeanName" value="trade" />
<property name="customEditors">
<map>
<entry key="java.math.BigDecimal">
<bean class="com.test.utils.propertyeditor.ImpliedScaleB igDecimalEditor" />
</entry>
</map>
</property>
</bean>
<bean id="trade" class="com.test.beans.Trade"
scope="prototype" />
Thanks in advance!
Bob


Reply With Quote