Class loading method and device

A class loading and class loader technology, applied in the computer field, can solve the problem that the loading mechanism cannot meet the dynamic requirements of multi-module class loading requests

Pending Publication Date: 2021-04-09
AGRICULTURAL BANK OF CHINA
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In order to solve the problem that the loading mechanism of parent delegation in the prior art cannot meet the dynamic requirements of multi-modules for class loading requests, this application provides a class loading method and device, which can meet the dynamic requirements of multi-modules for class loading requests

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0069] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiment of the application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiment of the application. Obviously, the described embodiment is only It is a part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.

[0070] As described in the background technology, in the loading mechanism of parent delegation, the bootstrap class loader (BootstrapClassLoader): is responsible for loading the JAVA_HOME\lib directory, or in the path specified by the -Xbootclasspath parameter, and is recognized by the virtual machine (identified by file name) , such as rt.jar) class. Extension C...

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 discloses a class loading method and device. The method comprises the following steps: obtaining a class loading request of an application module, and enabling the class loading request to carry the attribute configuration information and class loading configuration information of the application module; determining a target class loader from a plurality of class loaders according to the class loading configuration information, wherein the plurality of class loaders include a non-custom class loader and a plurality of custom class loaders, and each custom class loader has at least two custom loaders as parent class loaders; controlling the target class loader to process the class loading request according to the attribute configuration information; and returning a processing result of the class loading request to the application module. Therefore, the class loading method provided by the embodiment of the invention breaks through the limitation of a loading mechanism delegated by parents, the class loading request can be processed according to the requirements of the application module, and the dynamic requirements of multiple modules on the class loading request can be met.

Description

technical field [0001] The present application relates to the computer field, in particular to a class loading method and device. Background technique [0002] As the functions of an application system continue to enrich, it is necessary to modularize the application system with multiple functions, that is, each module corresponds to a function in the application system, and each module is an independent business function. For example, if the bank application system can provide two functions of depositing money and withdrawing money, the system can be split into two modules, one module is only responsible for the function of depositing money, and the other module is only responsible for the function of withdrawing money. Although it is an application system, it does not interfere with each other. After splitting into modules, each module needs to send a class loading request to the class loader, and the class loader loads the class file into binary data into memory and plac...

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/44521
Inventor 应俊孙莹
Owner AGRICULTURAL BANK OF CHINA
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