|
[
Permlink
| « Hide
]
Lucas Ward added a comment - 03/Apr/08 11:28 AM
I see what the ExceptionHandler is used for now, it sets the step level. The problem is that there's no way to set it at the Chunk level. The only reason it's needed in this case if that my client wants to be able to say that certain exceptions thrown in the write don't cause rollbacks.
Created an issue against 1.1 for adding the rollback and not-for-rollback list:
Which feature should be in 1.0.1, then? It seems like it would be more in keeping with the existing step factory beans to add another exception list (which would argue for
There is also a good workaround to both issues - to create your own ItemOrientedStep by hand, or implement a new step factory bean. So I actually don't think we should address either issue in 1.0.1. I agree that there's a workaround by creating a new StepFactoryBean implementation (which one client did), but it's debatable about whether that's a good one. I agree that
I still don't think we can do anything for 1.0.1. It would be best perhaps if you tidy up the comments here so that it is clear what you think is achievable in the scope of 1.0.1.
Simply injecting the exception handler for the chunk template might be counterproductive - we decided we wanted factory beans because there were too many options and they weren't very easy to choose in the step implementations. If we start adding more features to the factory beans we might end up back in the same boat. It would be better to take it slowly. I can't see a way to allow JobParameters to be injected into a step with any simple extension to the existing factory. There is another issue for that anyway. Ther is always the RepeatOperationsStepFactoryBean for clients who want more control. Dave,
I agree one the setter for the ExceptionHandler, but it still seems like adding a getter for the chunkOperations wouldn't be too bad, since there's already one for the StepOperations, it would allow people who want to subclass the option. I added the getter for the ChunkOperations to the SimpleStepFactoryBean. Since we were already providing a getter for StepOperations, and the same class was already creating the chunk operations, it made sense.
|
||||||||||||||||||||||||||||||||||||||||||||||