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

Method and device for class loading process

A kind of loader technology, applied in multi-program device, program control device, program loading/starting, etc., can solve the problems of high resource occupation and low processing efficiency, achieve low cost and risk, improve efficiency, and have no technology The effect of obstacles

Inactive Publication Date: 2008-02-06
KINGDEE SOFTWARE(CHINA) CO LTD
View PDF0 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] The technical problem to be solved by the present invention is to provide a method for class loading processing to solve the problems of low processing efficiency and excessive resource occupation of Applet class loaders in the prior art

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
  • Method and device for class loading process
  • Method and device for class loading process
  • Method and device for class loading process

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0040] In order to make the above objects, features and advantages of the present invention more comprehensible, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0041] With reference to Fig. 1, show a kind of flow chart that adopts existing Applet class loader to load non-business class (system class), comprise the following steps:

[0042] Step 101, the JVM requests to load a class;

[0043] Step 102, ACL (Applet ClassLoader) calls the loading method of its parent class loader SystemClassLoader;

[0044] Step 103, judging whether it can be loaded into the class;

[0045] Step 104, if it can be loaded, then load the class and complete the loading;

[0046] Step 105, if it cannot be loaded, then call the class loading method of Applet ClassLoader itself;

[0047] Step 106, judging whether it can be loaded into the class;

[0048] Step 107, if the class can be loaded, then load the clas...

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 present invention discloses a class loading processing method, including a produced user-defined class loader in which a rule of judgement is added; after a Java process is initiated, the user-defined class loader can be founded in the Java process; a context class loader which sets the present thread is the user-defined class loader, and a main class of an operation system is taken by the user-defined class loader according to the rule of judgement. By changing the prior process of the class loading, namely, for non-operation class, the prior process loading is adopted, for operation class, loading in other father class loader step-by-step is not needed, loading in the user-defined class loader is OK, so that the loading stress of the Applet class loader is decreased, and the class loading efficiency is improved greatly. Furthermore, since the present invention makes the user-defined class loader can be realized by being appointed in relevant thread, an overfull system resource cannot be occupied, and an additional system configure is not needed.

Description

technical field [0001] The invention relates to the field of Java class loading processing, in particular to a class loading processing method and a class loading processing device. Background technique [0002] At present, in the Internet / Intranet / Extranet environment, most enterprise-level application systems adopt three-tier or multi-tier application modes. In order to facilitate the development, deployment, operation and management of applications based on multi-layer structure, it is necessary to build a complete application framework based on the underlying technology of network and distributed computing, and provide corresponding supporting platforms as the infrastructure of multi-layer applications. The key to supporting the platform is the application server in the middle layer. Application server is a platform for creating, deploying, running, integrating and maintaining multi-tier distributed enterprise applications. In enterprise applications, the application s...

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/445G06F9/46
Inventor 唐国伟
Owner KINGDEE SOFTWARE(CHINA) 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