Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-4735

System wide event bus

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 5.0
    • 5.0
    • core

      We currently have a system wide event bus developed for the new UI and up til now it has only been used for UI related events.

      Going forward this should be part of magnolia-core and be provided as a facility for any code that would benefit from sending or listening to a system wide event.

      The changes I have in mind is moving the following classes from ui-framework to magnolia-core and the package info.magnolia.event:

      • info.magnolia.ui.framework.event.Event
      • info.magnolia.ui.framework.event.EventBus
      • info.magnolia.ui.framework.event.EventHandler
      • info.magnolia.ui.framework.event.EventHandlerCollection
      • info.magnolia.ui.framework.event.HandlerRegistration
      • info.magnolia.ui.framework.event.ResettableEventBus
      • info.magnolia.ui.framework.event.SimpleEventBus
      • info.magnolia.ui.framework.event.SystemEventBusConfigurer

      Configuration of the system wide event bus would also move from the ui-admincentral module to the core module.

      Q: The system event bus is configured in the main component provider. Which isn't necessarily a problem or even particularly confusing. It can become a problem though should the need for an EventBus specific to the system component provider be necessary later on.

        Acceptance criteria

              dlipp Daniel Lipp
              tmattsson Tobias Mattsson
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: