Uploaded image for project: 'Spring Batch'
  1. Spring Batch
  2. BATCH-1773

Step-scoped annotation based listener is not called

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Cannot Reproduce
    • Affects Version/s: 2.1.8
    • Fix Version/s: 2.2.0, 2.2.0 - Sprint 11
    • Component/s: None
    • Labels:
      None

      Description

      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

        Attachments

          Activity

            People

            • Assignee:
              mminella Michael Minella
              Reporter:
              daywalker2000@gmx.net Michael Pralow
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: