Uploaded image for project: 'Replication'
  1. Replication
  2. REPLICAT-119

It's not really possible to directly inject ReplicationInstanceManager in a listener

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 1.1.2
    • 1.1.1
    • Generic
    • None
    • Unknown

    Description

      It indirectly injects InstanceIdManager which require a fully initialized XWiki install to be initialized and pass on this requirement to anything that inject it.

      It's a bit of a pain to not be able to just inject ReplicationInstanceManager in a listener so it would be better to improve that at a lower level (especially since InstanceIdManager is actually very rarely used).

      The easiest workaround is to inject it through a Provider (or to use ComponentManager#getInstance when needed).

      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: