Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Class loading method and class loader

A class loader and loader technology, applied in the computer field, can solve problems such as not being able to include the same class, inconvenient application development, etc., and achieve the effect of flexible development

Active Publication Date: 2017-07-07
BEIJING 58 INFORMATION TTECH CO LTD
View PDF3 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The present invention provides a class loading method and a class loader, which are used to solve the problem in the prior art that the LIB of the plug-in and the LIB of the host program cannot include the same class, which leads to the inconvenience of application development

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 loading method and class loader
  • Class loading method and class loader
  • Class loading method and class loader

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0032] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0033] figure 1 It is a flowchart of Embodiment 1 of the class loading method of the present invention; as figure 1 As shown, the method of this embodiment may include:

[0034] Step 101, the first class loader searches for the first class in the LIB of the plug-in; wherein, the plug-in includes the first class loader;

[0035] Step 102: If the...

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 provides a class loading method and a class loader. The class loading method comprises the following steps that: a first class loader searches a first class in the LIB (Library) of a plugin, wherein the plugin comprises the first class loader; and if the first class loader finds the first class in the LIB, using the definition of the first class in the LIB to load the first class. By use of the method, the problem in the prior art that program development is inconvenient since the LIB of the plugin and the LIB of a host program can not contain the same class can be solved.

Description

technical field [0001] The invention relates to the field of computers, in particular to a class loading method and a class loader. Background technique [0002] The host program is the carrier for the plug-in to run, and also specifies the access specification of the plug-in. A plug-in is a program module, which refers to a function or business module that conforms to the access specification of the service platform, can run on the service platform, and is not required by the service platform itself. Wherein, the plug-in and the host program can be packaged in different Android installation packages (APK, Android Package). [0003] In the prior art, each APK may include a library (LIB, Library), and the LIB includes class definitions. When the plug-in class loader needs to load a class: the class loader will first notify the parent loader of the class loader to load the class; when the parent loader finds the class in the LIB of the host program, according to the host Th...

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 58 INFORMATION TTECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products