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

Class loading and isolating method and apparatus in Java application

A java application and class loading technology, applied in the field of Java applications, can solve the problems of large workload, large system resource manpower consumption, time cost, system resource manpower, time cost waste, etc., and achieve the effect of avoiding conflicts

Active Publication Date: 2016-03-16
TAOBAO CHINA SOFTWARE
View PDF3 Cites 21 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, for developers, if they want to take advantage of the modular features provided by the OSGi platform, they have to accept its dynamic features, but this will bring a huge workload and consume a lot of system resources, manpower and time costs. to achieve this dynamic
Therefore, in the process of using the OSGi platform for development, there is a relatively large waste of system resources, manpower, and time costs.

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 and isolating method and apparatus in Java application
  • Class loading and isolating method and apparatus in Java application
  • Class loading and isolating method and apparatus in Java application

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0034] The following will clearly and completely describe the technical solutions in the embodiments of the application with reference to the drawings in the embodiments of the application. Apparently, the described embodiments are only some of the embodiments of the application, not all of them. All other embodiments obtained by persons of ordinary skill in the art based on the embodiments in this application belong to the protection scope of this application.

[0035] In the embodiment of the present application, a lightweight isolation container is provided, which realizes modularization only through class isolation, and ignores dynamics. In this way, when developers develop applications based on the isolated container, they can well realize the isolation between components, and at the same time, they do not need to spend better resources, manpower, and time costs for realizing dynamization. The specific implementation scheme is introduced in detail below.

[0036] First o...

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 application discloses a class loading and isolating method and apparatus in a Java application. A plurality of component package required to be isolated and loaded are pre-stored in a first specified directory of an isolation container; information of classes required to be exported by corresponding components is stored in a second specified directory of each component package; and classes and class codes of dependent items in the components are stored in a third specified directory. The method comprises: receiving a starting instruction; analyzing each component package in the first specified directory; by taking the third specified directory of each component as a class path, creating a class loader for each component; for each component, loading the class required to be exported in the component by using the corresponding class loader; and exporting the class required to be exported into a running environment in which a third-party application is located. Through the class loading and isolating method and apparatus, it is not required to consume excessive system resources and labor and time costs for dynamic realization while the modularization is realized.

Description

technical field [0001] This application relates to the technical field of Java applications, in particular to a class loading isolation method and device in Java applications. Background technique [0002] In the field of Java development, components are an important concept. The so-called component is a reusable code set that can complete a certain function and provide several interfaces that use this function. Inside the component, multiple classes cooperate to realize the specified function, and at the same time, the component exposes one or more interfaces for external calls. Plug-ins, frameworks, etc. all belong to the category of components. [0003] Developers may use multiple components when developing Java applications, and through the collaboration between multiple components, they can jointly complete one or more functions in the application. In the traditional development process, developers directly depend on each component in the application. However, becaus...

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
Inventor 倪超
Owner TAOBAO CHINA SOFTWARE
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