|
|
|
[
Permlink
| « Hide
]
Ben Hale - 12/Mar/08 03:24 AM
I'm looking at the source code for ItemOrientedStep now and there is no import of any of the backport-util-concurrent classes. We use them elsewhere and I'm going to explore limiting those dependencies a bit, but for now can you confirm that you are actually seeing the problem in ItemOrientedStep?
I'm using 1.0.0m5 and ItemOrientedStep uses a Semaphore in that release. See http://fisheye3.cenqua.com/browse/~raw,r=10707/springframework/spring-batch/trunk/spring-batch-execution/src/main/java/org/springframework/batch/execution/step/ItemOrientedStep.java.
However, the history of ItemOrientedStep in Fisheye shows that the Semaphore import is removed a few hours after the release of 1.0.0m5. So I guess ItemOrientedStep doesn't have an issue in RC1. Backport concurrent is already a dependency for anyone using TasKExecutrorRepeatTemplate (in infrastructure). I guess this is a small enough fraction of users that it could be made optional there as well. But I wouldn't do much work to remove the dependency completely, unless there is a strong reason to do so,
Ben, thanks for factoring out the backport dependencies in ItemOrientedStep and TaskExecutorRepeatTemplate. I found that RepeatContextCounter is also dependent on backport-util-concurrent (it uses an AtomicInteger). As far as I can see this is the only class with a direct dependency, any change of this being abstracted away?
Thanks for the quick response, I was about to submit a patch myself until I noticed your incoming change.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||