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

Configuration file control method and device in program development process

A configuration file and program development technology, applied in the direction of program control devices, etc., can solve the problem that the behavior mode does not reflect the configuration file information in real time

Inactive Publication Date: 2011-04-13
SHANGHAI WINGTECH ELECTRONICS TECH
View PDF4 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] It can be seen from the above that in the existing technical solutions, the behavior mode during the running of the program does not immediately reflect the configuration file information

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
  • Configuration file control method and device in program development process
  • Configuration file control method and device in program development process
  • Configuration file control method and device in program development process

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0028] The technical solutions of the present invention will be further described below in conjunction with the accompanying drawings and embodiments.

[0029] see figure 1 and figure 2 , figure 1 The connection relationship 100 among the thread class instance, the listening class instance and the configuration folder is shown, and the connection relationship between 4 listening class instances, one thread class instance and the configuration folder is included in the figure. figure 2 A configuration file control method 200 during program development is shown, including the following steps:

[0030] 201. Create a folder for storing the configuration file.

[0031] Create a folder dedicated to storing configuration files.

[0032] 202. Create a thread class instance, check whether the information in the scanned folder has changed every predetermined time, and if so, go to the next step.

[0033] The step 202 uses the Singleton (single case) mode to create the thread 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 invention discloses a configuration file control method and a configuration file control device in a program development process. The method comprises the following steps of: establishing a special file folder for storing configuration files, establishing a thread example by using a singleton mode, implementing a thread method, checking whether information in the file folder is changed every once in a while, if so, informing a monitoring example for monitoring the configuration file change, and reloading the changed configuration information. The method and the device can dynamically load the configuration file information in the program running process so that the program behaviors become effective together with the modification of the configuration files.

Description

technical field [0001] The invention relates to the technical field of program development, in particular to a configuration file control method and device in the program development process. Background technique [0002] Configuration files play a very important role in the program development process, and applications can read configuration information from configuration files to display different behaviors. However, in quite a lot of development processes, configuration files are required to be configured in advance and read during program startup. [0003] It can be seen from the above that in the existing technical solution, the behavior mode during program running does not immediately reflect the configuration file information. To address this defect, it is necessary to provide a method for dynamically loading configuration files, so that the modification of the configuration files can be reflected in the program immediately during the running of the program. Conten...

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
IPC IPC(8): G06F9/44
Inventor 谢永堤
Owner SHANGHAI WINGTECH ELECTRONICS TECH
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