Resolution: Cannot Reproduce
Affects Version/s: 2.1.8
Whilst playing around with some spring batch examples, i noticed a strange behaviour, if you use a step scoped stepexecutionlistener with annotation e.g. @AfterStep, the method won't be used.
To be sure i tested the 4 possibilities:
- interface based listener
- interface based listener scope="step"
- annotation based listener
- annotation based listener scope="step"
the afterstep method of the last one annotation based listener scope="step" is not called
it smells like a bug, but i might miss something here
if you want to see the source, i created a simple listeners project in my github repo https://github.com/langmi/spring-batch-examples, listener projects lives in https://github.com/langmi/spring-batch-examples/tree/master/listeners