Unlock instant, AI-driven research and patent intelligence for your innovation.

A module dynamic loading method and device

A technology of dynamic loading and sub-module, applied in the direction of program control device, program loading/starting, etc., can solve the problems of no adoption, increased learning cost, high complexity, etc., achieving less labor and time consumption, low learning cost, easy-to-achieve effects

Active Publication Date: 2019-09-20
BEIJING FOREVER TECH
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Although OSGi technology can realize the dynamic loading of application modules, when a project does not adopt OSGi technology in the architecture, and the module dynamic loading requirements are added during the project development process (such as the dynamic loading requirements for MVC modules), it may be Need to rebuild the project architecture
Due to the high complexity of OSGi technology, rebuilding the project architecture will inevitably lead to increased learning costs, and will also consume more manpower and time

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
  • A module dynamic loading method and device
  • A module dynamic loading method and device
  • A module dynamic loading method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0064] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0065] The embodiment of the invention discloses a module dynamic loading method and device, so as to realize the dynamic loading of the module while keeping the project structure unchanged.

[0066] see figure 1 , a method flowchart of a module dynamic loading method disclosed in an embodiment of the present invention, the method includes steps:

[0067] Step S101, when the application module needs to be loaded dynamically, construct a new servlet service ob...

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 discloses a dynamic module loading method and device. The method comprises the following steps: when requiring to dynamically load an application module, establishing a new servlet service object; when receiving a servlet request, forwarding the received servlet request to a new servlet service object by using the original servlet service object to dynamically load the application module by the new servlet service object; and after the new service object is established, destroying the servlet service object established during last dynamic module loading. By the method disclosed by the invention, a project framework does not need to be established again, when the application module is loaded dynamically every time, only the new servlet service object needs to be established, therefore, dynamic loading to modules can still be realized under the condition that the project framework is not changed, the dynamic module loading method is easy to realized, moreover, learning cost is low, and consumed labor and time are less.

Description

technical field [0001] The invention relates to the technical field of module loading, and more specifically, to a method and device for dynamically loading modules. Background technique [0002] In java web applications, there are usually many B / S applications that need to run continuously for a long time. Sometimes these applications need to add or delete some application modules. Next, dynamically add or delete application modules. [0003] At present, the commonly used module dynamic loading technology is OSGi technology, which is a series of specifications of Java dynamic modular system and the technical implementation based on this specification, which is a more fine-grained module dynamic loading technology. Although OSGi technology can realize the dynamic loading of application modules, when a project does not use OSGi technology in the architecture, and the module dynamic loading requirements are added during the project development process (such as the dynamic loa...

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 Patents(China)
IPC IPC(8): G06F9/445
Inventor 陈显龙杨志鹏罗新伟胡宝良刘海牛仁义
Owner BEIJING FOREVER TECH