[MAGNOLIA-4735] System wide event bus Created: 28/Aug/12  Updated: 20/Feb/13  Resolved: 15/Feb/13

Status: Closed
Project: Magnolia
Component/s: core
Affects Version/s: 5.0
Fix Version/s: 5.0

Type: New Feature Priority: Neutral
Reporter: Tobias Mattsson Assignee: Daniel Lipp
Resolution: Fixed Votes: 0
Labels: apiteam
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
causality
is causing MGNLWORKFLOW-24 Adapt to latest changes to App API Closed
dependency
is depended upon by MGNLUI-655 Configuration by code classes for act... Closed
relation
is related to MGNLUI-432 Provide system wide event bus Closed
Template:
Acceptance criteria:
Empty

 Description   

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.


Generated at Mon Feb 12 03:58:32 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.