-
Jul 22nd, 2011, 09:04 AM
#1
stepscoped listeners - annotation based listener does not work
<update>
there is a jira ticket for this see BATCH-1773
</update>
Hello !
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
Regards
Michael
ps: i would really like a junit test for this, would be nice if you could point me to the right direction for a test setup
Last edited by michael.lange; Jul 26th, 2011 at 09:12 AM.
Reason: added reference to jira ticket
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules