Component method, device, apparatus, and storage medium for application program
An application and component technology, applied in the direction of program code conversion, creation/generation of source code, code compilation, etc., can solve the problems of complex code and logic, prolonged compilation time, and difficulty in collaborative development, so as to improve development efficiency and reduce Compile time, the effect of avoiding circular dependency errors
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0030] figure 1 It is a flow chart of an application componentization method provided by Embodiment 1 of the present invention. This embodiment is applicable to the case where the functional modules in the application are componentized and then called between components. Wherein, the application program includes multiple functional modules. After the functional modules are componentized, each functional module includes a component. In most cases, there is interaction logic between components. If two functional modules are directly bidirectionally referenced, a circular dependency error will result. This is because the compiler itself does not support the dependency library to have a circular dependency. In order to solve the above defects, the embodiment of the present invention builds a service center, and each component has a one-way dependency on the service center, so that the interaction logic between components can be realized through the service center, and circular de...
Embodiment 2
[0044] Figure 2a It is a flow chart of an application componentization method provided by Embodiment 2 of the present invention. This embodiment further optimizes the optional implementation modes in the above embodiments. Optionally, when obtaining the interface layer that needs to be called by the first component Before the information, the additional operation "acquires the mapping relationship between the interface layer and the implementation layer of each component in the project engineering corresponding to the application program in response to the startup of the application program", so as to provide the data basis for the component to provide the implementation layer information. combine Figure 2a , the method provided by the embodiment of the present invention includes the following operations:
[0045] S210. In response to the start of the application program, acquire the mapping relationship between the interface layer information and the implementation layer i...
Embodiment 3
[0056] image 3 It is a schematic diagram of componentization of an application program provided by the third embodiment of the invention. image 3 The left side is a schematic diagram of the application program architecture in the prior art. In the prior art, the project engineering generates the application program 1 . The application program 1 comprises a main functional module comprising a first component and a second component where interaction logic exists. The second component and the second component call each other in the main function module, and there will be no circular dependency error.
[0057] With the complexity of the business, this embodiment lowers the components in the application program 1, divides the first component into the first functional module, and divides the second component into the second functional module. Further, in the component sinking process, combined with image 3 On the right, store the interface layer of the first component in the f...
PUM
![No PUM](https://static-eureka.patsnap.com/ssr/23.2.0/_nuxt/noPUMSmall.5c5f49c7.png)
Abstract
Description
Claims
Application Information
![application no application](https://static-eureka.patsnap.com/ssr/23.2.0/_nuxt/application.06fe782c.png)
- 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