Class search method and apparatus

A technology for finding modules and class libraries, which is applied in the field of searching classes, and can solve problems such as the failure of the program to run normally, and achieve the effect of preventing the program from running normally and preventing the normal operation of the program

Inactive Publication Date: 2016-12-07
BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF4 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] When the class library of the main program of the application and the class library of the plug-in program contain classes with the same class name but different class data (for example, the versions of the two are different, or the functions performed are different), and the plug-in needs to load the plug-in program When using the classes in the class library of the main program, based on the above method of searching for classes, the plug-in will load the classes in the class library of the main program, thus causing the program to fail to run normally

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
  • Class search method and apparatus
  • Class search method and apparatus
  • Class search method and apparatus

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0057] Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present disclosure as recited in the appended claims.

[0058] An exemplary embodiment of the present disclosure provides a method for searching classes, such as figure 1 As shown, the processing flow of the method may include the following steps:

[0059] In step 101, when receiving an instruction to load a target class from a target program, search for class data of the target class in a class library of the target program.

[0060] Whe...

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 invention relates to a class search method and apparatus, and belongs to the technical field of electronics. The method comprises the steps of searching for class data of a target class in a class library of a target program when a loading instruction of the target program for the target class is received; and if the class data of the target class is found in the class library of the target program, loading the target class based on the class data of the target class, and if the class data of the target class is not found in the class library of the target program, searching for the class data of the target class in a class library of a previous program of the target program and loading the target class based on the class data of the target class. With the adoption of the method and the apparatus, normal running of programs can be ensured.

Description

technical field [0001] The present disclosure relates to the field of electronic technology, in particular to a search method and device. Background technique [0002] With the development of electronic technology, various terminals have been widely used, and there are more and more types of application programs on the corresponding terminals, and more and more functions. [0003] At present, the application program includes a main program and a plug-in program. Among them, the class library of the main program and the class library of the plug-in program will contain some classes that need to be loaded. Among them, a class is a computer program that can perform certain operations. type of data. At present, programs written in java language (such as the Android system) search for the class data of the class to be loaded according to the class name, and then load the class to be loaded based on the class data. The loading process is: firstly, in the top program Find the cla...

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): G06F9/445
CPCG06F9/44526
Inventor 曹丁鹏王益冬陈勇
Owner BEIJING XIAOMI MOBILE SOFTWARE CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products