Uploaded image for project: 'XWiki Commons'
  1. XWiki Commons
  2. XCOMMONS-363

Make possible to @Inject ObservationManager in an EventListener

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.0-milestone-1
    • Fix Version/s: 5.0-milestone-2
    • Component/s: Observation
    • Labels:
      None
    • Tests:
      Unit
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      Right now this is impossible because DefaultObservationManager#initialize lookup all listeners.

      It's always annoying to have to lazily lookup ObservationManager and sometimes it's even quite complex to understand that the init crashed because you have some far dependency of your listener injecting default ObservationManager.

        Attachments

          Activity

            People

            • Assignee:
              tmortagne Thomas Mortagne
              Reporter:
              tmortagne Thomas Mortagne
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: