Communication method and device for components in application program, equipment and storage medium
A technology of application program and communication method, which is applied in the direction of multi-program device, inter-program communication, program control design, etc., and can solve the problems of not being able to know the whereabouts of messages, difficult to debug and maintain codes, and not knowing the source of messages, etc.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0029] figure 1 It is a flow chart of a communication method for components in an application program provided by Embodiment 1 of the present invention. This embodiment is applicable to the situation where components in an application program communicate with each other, and the method can be executed by a communication device for components in an application program , applied to the message bus in the communication framework on which the application program depends, specifically including the following steps:
[0030] S110. Parse the received message request packet.
[0031] In this embodiment, the message request message may specifically be understood as communication information sent by a functional component in an application program to a message bus for mutual communication with other functional components. The message request message carries at least the identification of the component communication, through the identification to determine the functional component as th...
Embodiment 2
[0055] Figure 4 It is a flow chart of a communication method for components in an application program provided by Embodiment 2 of the present invention. The technical solution of this embodiment is further refined on the basis of the above-mentioned technical solution, and specifically mainly includes the following steps:
[0056] S410. Parse the received message request packet.
[0057] Specifically, the message request message sent by the functional component serving as the message publisher is analyzed to obtain the identification information of the message receiver.
[0058] S420. If the message request message contains a second key identifier for intra-component communication, obtain the target component sub-service associated with the second key identifier from the predetermined second message monitoring table, so that all The target component sub-service responds to the request operation corresponding to the message request message.
[0059] In this embodiment, the ...
Embodiment 3
[0087] Figure 7 A structural diagram of a communication device for components in an application program provided by Embodiment 3 of the present invention, the device includes: a message parsing module 71 and a component acquisition module 72 .
[0088] In this embodiment, the message parsing module 71 is configured to parse the received message request message; the component obtaining module 72 is configured to, if the message request message contains the first key identifier used for inter-component communication, Obtain the target functional component associated with the first key identifier from the predetermined first message monitoring table, so that the target functional component responds to the request operation corresponding to the message request message; wherein, the first message The listening table is formed based on the business logic interface classes that the functional components in the application program depend on at the business service layer.
[0089] An...
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