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

  • 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, 10:12 AM. Reason: added reference to jira ticket
Working...
X