Unlock instant, AI-driven research and patent intelligence for your innovation.

Part implementation method and device

An implementation method and technology for components are applied in the field of component implementation methods and devices to achieve the effects of improving development efficiency and reducing development workload.

Pending Publication Date: 2021-05-28
HANGZHOU EZVIZ SOFTWARE CO LTD
View PDF4 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0010] At present, in the process of componentized development of Android (Android) applications, the main project depends on components, but since there can only be one Application (basic context) in the process of compiling and packaging Android applications, all components need to implement actions in Application. It needs to be processed in the Application in the main project, resulting in serious coupling between the main project and the components. The actions of adding or modifying components in the Application need to modify the main project

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Part implementation method and device
  • Part implementation method and device
  • Part implementation method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0044] The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0045] figure 1 It is a flowchart of a component implementation method provided by an embodiment of the present invention, and its specific steps are as follows:

[0046]Step 101: For each component of the application, if the component needs to be implemented in the main project Application, an annotated class is generated for the component, the annotated class has an annotation interface, and the content of the annotation interface includes: component Identification, and whether the component needs to be implemented in the Application's attachBaseContext (attach base context) callback method.

[0047] Step 102: When the main project Application starts the attachBaseContext callback method, traverse all the annotated classes, if the annotation interface content of any annotated class indicates that the component needs to be implement...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The embodiment of the invention provides a part implementation method and device. The method comprises the steps that for each part of an application program, if the part needs to be implemented in a main project Application, an annotated class is generated for the part, and the content of an annotation interface of the annotated class comprises a part identifier and a mark indicating whether the part needs to be implemented in an Application Attraction BaseContext callback method or not; and when the main project Application starts the attache BaseContext callback method, traversing all annotated classes, and if the annotation interface content of any annotated class indicates that the part needs to be implemented in the attache BaseContext callback method of the Application, implementing the corresponding part in the attache BaseContext callback method according to the part identifier in the annotation interface content of the annotated class. According to the embodiment of the invention, the application program development efficiency is improved.

Description

technical field [0001] The invention relates to the technical field of application program development, in particular to a component implementation method and device. Background technique [0002] For the convenience of understanding, the following description is first given: [0003] AppAgent (Application Agent): refers to the name of the entire program. [0004] Main project: Refers to the componentized business main project, which is responsible for managing various business components and packaging apk, without specific business functions. [0005] Business components: business modules that are independently divided according to specific business characteristics, and business function modules that can be compiled and released independently. [0006] Functional components: Specific independent functional modules required by business functions, such as log components, network components, live library, etc. [0007] Base layer: The lowest layer in the project framework, ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/30G06F8/41
CPCG06F8/315G06F8/447
Inventor 苏晓林
Owner HANGZHOU EZVIZ SOFTWARE CO LTD