Issue Details (XML | Word | Printable)

Key: BATCH-358
Type: Task Task
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Lucas Ward
Reporter: Gaetan Pitteloud
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Spring Batch

Provide a way to set exceptionClassifier and interruptionPolicy into the SimpleStepExecutor

Created: 13/Feb/08 01:27 AM   Updated: 07/Aug/08 10:06 AM
Component/s: Core
Affects Version/s: 1.0.0.m4
Fix Version/s: 1.0.0.m5

Time Tracking:
Not Specified


 Description  « Hide
There is no way to set the exceptionClassifier and interruptionPolicy into the SimpleStepExecutor by configuration. The only possible way is to create a new Step subclass.

Further, when overriding RepeatOperationsStep, I notice that execute() explicitely invokes <b>super</b>.createStepExecutor(), although super is not necessary here, and most problematic, it prevents polymorphism usage of createStepExecutor() in subclass.

 All   Comments   Work Log   Change History   FishEye   Builds      Sort Order: Ascending order - Click to sort in descending order
Lucas Ward added a comment - 13/Feb/08 12:58 PM
Thanks for submitting the issue. I noticed some of the same issues during my refactoring for Milestone 5, which you can see as 'ChunkedStep'. In all, I think the 'createStepExecutor' method should be removed, leaving any implementations of AbstractStep to implement their own execute method.

Lucas Ward added a comment - 25/Feb/08 11:50 AM
This was fixed when SimpleStep was merged with SimpleStepExecutor, which is now called ItemOrientedStep

Dave Syer added a comment - 07/Aug/08 10:06 AM
Assume closed as resolved and released