Intermodular message transmission mechanism based on event bus
An event bus and message passing technology, applied in the field of programming, can solve problems such as serious module coupling, and achieve the effect of enhancing the use of interface hierarchy
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Examples
Embodiment Construction
[0018] The present invention aims at the problem of severe coupling between modules in the existing software programming process, and proposes a message transmission mechanism between modules based on an event bus, including the following steps:
[0019] A. Implement and mark the subscription functions of various events in the subscriber class, and the subscriber registers events with the event bus;
[0020] B. After the event bus registers the event, find out the subscription function marked in the registration object through the reflection mechanism, and generate the subscriber object;
[0021] C. Use the subscription event as the key, and use the map to maintain the subscriber information. The subscriber information includes the subscriber object, callback event function and event type;
[0022] D. Analyze the subscriber object through the reflection mechanism, determine the event execution method according to the method name of the callback event function callback, and tra...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com