
Originally Posted by
Dave Syer
Can't you just inject the ValidationEventHandler (or a common component between the two) into the reader?
Wow! I never thought of the approach you suggested. It sounds perfect. I will try doing it that way.
I wonder though if my plan to use "scope=step" on both "myCustomReader" as well as on "myCustCommonComponent"
is the right way to use the "step" scope. (see proposed code example below)
Code:
<bean id="myCustomReader" scope="step"
class="foo.MyCustomReader">
<property name="myCustCommonComponent" ref="myCustCommonComponent" />
...other configs...
</bean>
<bean id="myCustCommonComponent" class="foo.MyCustCommonComponent" scope="step"
... configs ....
</bean>