Traitement en cours

Veuillez attendre...

Paramétrages

Paramétrages

Aller à Demande

1. CN108279940 - Module loading method and apparatus for web container

Office Chine
Numéro de la demande 201611261971.7
Date de la demande 30.12.2016
Numéro de publication 108279940
Date de publication 13.07.2018
Numéro de délivrance 108279940
Date de délivrance 15.12.2020
Type de publication B
CIB
G06F 9/445
GPHYSIQUE
06CALCUL; COMPTAGE
FTRAITEMENT ÉLECTRIQUE DE DONNÉES NUMÉRIQUES
9Dispositions pour la commande par programme, p.ex. unités de commande
06utilisant des programmes stockés, c. à d. utilisant un moyen de stockage interne à l'équipement de traitement de données pour recevoir ou conserver les programmes
44Dispositions pour exécuter des programmes spécifiques
445Chargement ou démarrage de programme
CPC
G06F 9/44505
GPHYSICS
06COMPUTING; CALCULATING; COUNTING
FELECTRIC DIGITAL DATA PROCESSING
9Arrangements for program control, e.g. control units
06using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
44Arrangements for executing specific programs
445Program loading or initiating
44505Configuring for program initiating, e.g. using registry, configuration files
G06F 9/44552
GPHYSICS
06COMPUTING; CALCULATING; COUNTING
FELECTRIC DIGITAL DATA PROCESSING
9Arrangements for program control, e.g. control units
06using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
44Arrangements for executing specific programs
445Program loading or initiating
44552Conflict resolution, i.e. enabling coexistence of conflicting executables
Déposants HUAWEI SOFTWARE TECHNOLOGY CO., LTD.
华为技术有限公司
Inventeurs ZHAO BIN
赵斌
WANG HUI
汪辉
ZHANG LIANGFA
张良发
ZHOU JUNJIE
周俊杰
Titre
(EN) Module loading method and apparatus for web container
(ZH) 一种web容器中的模块加载方法和装置
Abrégé
(EN)
The invention discloses a module loading method and apparatus for a web container, and aims to solve the problem of relatively low class search speed in an existing Web container startup process. Themethod comprises the steps of obtaining a pre-configured black list and/or white list of modules of a first web application in a web container startup process of the first web application; if the white list of the modules is obtained, when a class is searched for through a universal class loader, executing class search and loading in the modules comprised in the white list; and if the black list of the modules is obtained and the white list is not obtained, when the class is searched for through the universal class loader, traversing whether the modules in a corresponding universal class loading path are comprised in the black list or not, and if any module in the corresponding universal class loading path is comprised in the black list, not executing the class search for any module. Therefore, the modules of the black list and the white list can be configured with class loading ranges; the class search time is shortened; and the startup speed is increased.

(ZH)
本发明公开了一种web容器中的模块加载方法和装置,以解决现有的Web容器启动过程中类查找速度较慢的问题。该方法为,在第一web应用的web容器启动过程中,获取预先配置的所述第一web应用的各模块的黑名单和/或白名单;若获取到各模块的白名单,当通过通用类加载器查找类时,在白名单中包括的各模块中执行类查找和加载;若获取到各模块的黑名单、且未获取到白名单,当通过通用类加载器查找类时,遍历对应的通用类加载路径下的各个模块是否包括在所述黑名单中,若对应的通用类加载路径下的任一模块包括在所述黑名单中,则不针对所述任一模块执行类查找,这样能够黑白名单的模块配置类加载范围,减少类搜索耗时,提升启动速度。