一种配置文件的加载方法及装置

By using a predefined enumeration class and a public class to determine the loading interval, configuration files are loaded in real time, solving the problem that the development framework cannot load configuration information in real time, simplifying the code and unifying the management of configuration files.

CN113326077BActive Publication Date: 2026-07-17WEBANK (CHINA)

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
WEBANK (CHINA)
Filing Date
2021-06-11
Publication Date
2026-07-17

AI Technical Summary

Technical Problem

In existing technologies, development frameworks cannot load newly added or modified configuration information in real time when loading configuration files, requiring a framework restart. Furthermore, configuration file management is complex and involves a lot of code.

Method used

By configuring loading instructions and utilizing preset enumeration classes and public classes, it can determine whether the loading interval of the configuration file meets the preset conditions, and load the updated configuration file in real time, simplifying the code implementation.

Benefits of technology

It enables configuration file loading without restarting, simplifies the code, unifies configuration file management, avoids resource waste, and improves the flexibility and accuracy of loading.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113326077B_ABST
    Figure CN113326077B_ABST
Patent Text Reader

Abstract

本发明公开了一种配置文件的加载方法及装置,包括:获取配置加载指令,配置加载指令中包括待加载对象,然后从预设枚举类中确定待加载对象的枚举值,其中,预设枚举类的枚举变量中包括文件名及文件描述,预设枚举类中包括至少一个枚举值,每个枚举值对应一个配置文件,再通过待加载对象的枚举值中的文件名,确定待加载对象位于公共类的静态类型的存储对象中,且待加载对象的加载间隔满足预设条件,则通过待加载对象的枚举值中的文件描述,获取待加载对象对应的配置文件并加载配置文件。以此实现无重启的加载更新后的配置文件,对各配置文件进行统一的管理,简易编程代码,防止频繁的加载更新后的配置文件,避免开发框架运行时的资源浪费。
Need to check novelty before this filing date? Find Prior Art