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

Make possible to @Inject ObservationManager in an EventListener

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 5.0-milestone-2
    • 5.0-milestone-1
    • Observation
    • None
    • Unit
    • N/A
    • N/A

    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

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

            Dates

              Created:
              Updated:
              Resolved: