Announcement Announcement Module
No announcement yet.
stepscoped listeners - annotation based listener does not work Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • stepscoped listeners - annotation based listener does not work

    there is a jira ticket for this see BATCH-1773

    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


    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, 09:12 AM. Reason: added reference to jira ticket