CN108595223A - A kind of configuration method of application program, device, equipment and storage medium - Google Patents
A kind of configuration method of application program, device, equipment and storage medium Download PDFInfo
- Publication number
- CN108595223A CN108595223A CN201810390789.4A CN201810390789A CN108595223A CN 108595223 A CN108595223 A CN 108595223A CN 201810390789 A CN201810390789 A CN 201810390789A CN 108595223 A CN108595223 A CN 108595223A
- Authority
- CN
- China
- Prior art keywords
- configuration file
- public
- file
- target
- layer
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
- G06F9/4451—User profiles; Roaming
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a kind of configuration method of application program, device, equipment and storage mediums.This method includes:After the operating instruction for obtaining application program, open configuration item reads thread;The public configuration file that thread reads client layer is read by configuration item, public configuration file is shared by application program and other applications;The public configuration file of client layer is changed relative to the public configuration file of application layer, then the public configuration file of application layer is updated according to the public configuration file of client layer;After the public configuration file of client layer does not change or updates the public configuration file of application layer relative to the public configuration file of application layer, the target configuration file of client layer is changed relative to the target configuration file of application layer, the target configuration file of application layer is then updated according to the target configuration file of client layer, target configuration file is used by application program, technical solution through the invention is configured with realizing for a certain specific application modification.
Description
Technical field
The present embodiments relate to telecommunication technology field more particularly to a kind of configuration method of application program, device, equipment
And storage medium.
Background technology
The multiple application programs started on same machine share same set of configuration, and for such case, we can allow institute
Have using a configuration file is shared, the configuration file fixed placement is under operating system catalogue, using from operating system catalogue
Lower reading configuration file configures to be managed collectively in this way.Such as the application based on database distinct interface.
Through the above way modification configuration, once having modified configuration file, all applications will be influenced, sometimes we only
It is intended to for some specific application adjustment configuration.
Invention content
The embodiment of the present invention provides a kind of configuration method of application program, device, equipment and storage medium, to realize not
It shuts down, and in the case that multiple application programs correspond to same set of configuration, for a certain specific application modification configuration.
In a first aspect, an embodiment of the present invention provides a kind of configuration method of application program, this method includes:
After the operating instruction for obtaining application program, open configuration item reads thread;
The public configuration file that thread reads client layer is read by the configuration item, the public configuration file is described
Application program and other applications share;
The public configuration file of the client layer is changed relative to the public configuration file of application layer, then according to the user
The public configuration file of layer updates the public configuration file of the application layer;
The public configuration file of the client layer is not changed relative to the public configuration file of application layer or described in updating
After the public configuration file of application layer, the target configuration file of the client layer relative to application layer target configuration file more
Change, then updates the target configuration file of the application layer, the target configuration text according to the target configuration file of the client layer
Part is used by the application program.
Further, the public configuration file that thread reads client layer, the public configuration are read by the configuration item
Before file is shared by the application program and other applications, further include:
Obtain modification information input by user and identification information;
It whether there is matching target configuration file according to the identification information-enquiry;
If the target configuration file is not present, target configuration file is established according to the identification information;
The configuration item in the target configuration file is changed according to the modification information.
Further, after establishing target configuration file according to the identification information, further include:
The file name of the target configuration file is changed according to the identification information.
Further, the file name includes:Primary filename and file extension;
Correspondingly, the file name for changing the configuration file according to the identification information includes:
The identification information is added to predetermined position before the file extension.
Second aspect, the embodiment of the present invention additionally provide a kind of configuration device of application program, which includes:
First acquisition module, after the operating instruction for obtaining application program, open configuration item reads thread;
Read module, it is described public for reading the public configuration file that thread reads client layer by the configuration item
Configuration file is shared by the application program and other applications;
First update module, for the client layer public configuration file relative to application layer public configuration file more
Change, then updates the public configuration file of the application layer according to the public configuration file of the client layer;
Second update module, for the client layer public configuration file relative to application layer public configuration file not
After changing or updating the public configuration file of the application layer, the target configuration file of the client layer is relative to application layer
Target configuration file is changed, then the target configuration file of the application layer is updated according to the target configuration file of the client layer,
The target configuration file is used by the application program.
Further, further include:
Second acquisition module, for obtaining modification information input by user and identification information;
Enquiry module, for whether there is matching target configuration file according to the identification information-enquiry;
Module is established, if being not present for the target configuration file, target configuration is established according to the identification information
File;
First modified module, for changing the configuration item in the target configuration file according to the modification information.
Further, further include:
Second modified module is believed after establishing target configuration file according to the identification information according to the mark
Breath changes the file name of the target configuration file.
Further, the file name includes:Primary filename and file extension;
Correspondingly, second modified module is specifically used for:
The identification information is added to predetermined position before the file extension.
The third aspect, the embodiment of the present invention additionally provide a kind of computer equipment, including memory, processor and are stored in
On memory and the computer program that can run on a processor, the processor are realized when executing described program as the present invention is real
Apply the configuration method of any application program in example.
Fourth aspect, the embodiment of the present invention additionally provide a kind of computer readable storage medium, are stored thereon with computer
Program realizes the configuration method of the application program as described in any in the embodiment of the present invention when program is executed by processor.
After operating instruction of the embodiment of the present invention by obtaining application program, open configuration item reads thread;Pass through and configures
Item reads the public configuration file that thread reads client layer, and public configuration file is shared by application program and other applications;
The public configuration file of client layer is changed relative to the public configuration file of application layer, then according to the public configuration file of client layer
Update the public configuration file of application layer;The public configuration file of client layer is not changed relative to the public configuration file of application layer
Or after the public configuration file of update application layer, the target configuration file of the target configuration file of client layer relative to application layer
Change then updates the target configuration file of application layer according to the target configuration file of client layer, and target configuration file is by using journey
Sequence uses, to realize in the case where that need not shut down and multiple application programs correspond to same set of configuration, for a certain specific
Application modification configures.
Description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached
Figure is briefly described, it should be understood that the following drawings illustrates only certain embodiments of the present invention, therefore is not construed as pair
The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this
A little attached drawings obtain other relevant attached drawings.
Fig. 1 is a kind of flow chart of the configuration method of application program in the embodiment of the present invention one;
Fig. 2 is a kind of flow chart of the configuration method of application program in the embodiment of the present invention two;
Fig. 3 is a kind of structural schematic diagram of the configuration device of application program in the embodiment of the present invention three;
Fig. 4 is a kind of structural schematic diagram of computer equipment in the embodiment of the present invention four.
Specific implementation mode
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining the present invention rather than limitation of the invention.It also should be noted that in order to just
Only the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
It should be noted that:Similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi
It is defined, then it further need not be defined and explained in subsequent attached drawing in a attached drawing.Meanwhile the present invention's
In description, term " first ", " second " etc. are only used for distinguishing description, are not understood to indicate or imply relative importance.
Embodiment one
Fig. 1 is a kind of flow chart of the configuration method of application program in the embodiment of the present invention one, and the present embodiment is applicable
In the configuration of application program the case where, this method can be executed by the configuration device of the application program in the embodiment of the present invention,
Software can be used in the device and/or the mode of hardware is realized, as shown in Figure 1, this method specifically comprises the following steps:
S110, after the operating instruction for obtaining application program, open configuration item reads thread.
Wherein, the operating instruction of the application program can be that user clicks the corresponding icon of application program, and then generates
Application program operating instruction, or user inputs corresponding with the title of application program language message, and then generation
Application program operating instruction, the embodiment of the present invention is not limited the producing method of the operating instruction of application program.
Wherein, the mode for obtaining the operating instruction of application program can be to be obtained by analyzing touch information input by user
The operating instruction of the application program arrived, or by the fortune for analyzing the application program that language message input by user is got
Row instruction, the embodiment of the present invention are not limited the mode for obtaining the operating instruction of application program.
Wherein, the configuration item is a part for configuration file, is under the jurisdiction of configuration file.Such as can be, it is if desired right
Configuration file is configured or changes, then needs that the configuration item in configuration file is configured and is changed.
Wherein, it is the thread for periodically reading configuration item that the configuration item, which reads thread, such as can be, at interval of one
It fixes time interval, re-reads a configuration item.
Optionally, setting open configuration item can also be needed to read the trigger condition of thread according to user, such as can be,
When terminal device, which is in, is initially powered up state, while open configuration item reads thread.
Specifically, after getting the operating instruction of application program, after starting one in the corresponding application of application program
Platform periodically reads the thread of configuration item, at interval of the regular hour, re-reads a configuration file, wherein interval time can
To be set according to user.
S120 reads the public configuration file that thread reads client layer by configuration item, and public configuration file is by using journey
Sequence and other applications share.
Wherein, configuration file is to carry out different configuration of file to different configuration items.
Wherein, the application program is the corresponding application program of application program operating instruction got, described other to answer
It is the application program in terminal device other than the corresponding application program of application program operating instruction got with program.
Wherein, the public configuration file of the client layer is the configuration file being stored under operating system catalogue, and terminal is set
All application programs in standby share a public configuration file.That is, being carried out to the configuration item in public configuration file
Modification, then can modify to the corresponding configuration item of all application programs in terminal device.
Specifically, after opening the periodically thread of reading configuration item, configuration item reads regular read of thread and is stored in behaviour
Make the public configuration file under catalogue, the configuration item in public configuration file is override to all application journeys in terminal device
The corresponding configuration item of sequence.
The public configuration file of S130, client layer are changed relative to the public configuration file of application layer, then according to client layer
Public configuration file update application layer public configuration file.
Wherein, the public configuration file of application layer is original public configuration file, if the public configuration file of client layer
It is changed relative to original public configuration file, then according to the original public configuration text of the public configuration file of client layer update
Part.
Specifically, if the configuration item of public configuration file of the user to being stored under operating system catalogue is modified, also
It is to say that the public configuration file stored under operating system catalogue has change relative to original public configuration file, then according to user
The public configuration file stored under modified operating system catalogue updates original public configuration file.
In a specific example, user opens application, terminal by the icon of the corresponding application of touching application program
Equipment gets the operating instruction of application program, opens the thread that configuration item is periodically read on backstage, periodically reads and be stored in operation
Public configuration file under system directory judges the public configuration file being stored under operating system catalogue read relative to original
Whether the public configuration file having has change, if there is change, according to the public configuration file being stored under operating system catalogue
Change original configuration file.
It should be noted that can also omit to whether the public configuration file of client layer matches relative to the public of application layer
The judgement of file amendment is set, the public configuration file of application layer is directly override with the public configuration file of client layer.
Application is not changed relative to the public configuration file of application layer or updated to the public configuration file of S140, client layer
After the public configuration file of layer, the target configuration file of client layer is changed relative to the target configuration file of application layer, then basis
The target configuration file of the target configuration file update application layer of client layer, target configuration file are used by application program.
Wherein, the target configuration file is the configuration file of the corresponding application of operating instruction of the application program obtained,
By can individually change the configuration item of the corresponding a certain application of target configuration file, Jin Ershi to the modification of target configuration file
Now individually change the configuration item of a certain application.
Specifically, not changing or updating the public configuration file of client layer relative to the public configuration file of application layer
After the public configuration file of the application layer, if the target configuration file of client layer relative to application layer target configuration file more
Change, then updates the target configuration file of the application layer according to the target configuration file of client layer.
In a specific example, all configuration items in realize that permission answering all in accordance with dynamic configuration item
With the value for dynamically changing configuration item in operational process;Start a thread for periodically reading configuration item in the application, every
Intervals re-read a configuration file, override the value of original configuration item;It is first read when reading configuration file
Public configuration file updates configuration item, reads again update configuration item using the target configuration file of oneself later.
The technical solution of the present embodiment, by obtain application program operating instruction after, open configuration item read thread;It is logical
It crosses configuration item and reads the public configuration file that thread reads client layer, public configuration file is by application program and other applications
It shares;The public configuration file of client layer is changed relative to the public configuration file of application layer, then is matched according to the public of client layer
Set the public configuration file of file update application layer;Public configuration file of the public configuration file of client layer relative to application layer
After not changing or updating the public configuration file of application layer, the target configuration file of client layer is matched relative to the target of application layer
File amendment is set, then updates the target configuration file of application layer, target configuration file quilt according to the target configuration file of client layer
Application program uses, to realize in the case where not shutting down and multiple application programs corresponding to same set of configuration, for a certain specific
Application modification configuration.
Embodiment two
Fig. 2 is a kind of flow chart of the configuration method of application program in the embodiment of the present invention two, and the present embodiment is with above-mentioned
It is optimized based on embodiment one, in the present embodiment, thread reading the public of client layer is read by the configuration item and is matched
Set file further includes before the public configuration file is shared by the application program and other applications:It is defeated to obtain user
The modification information and identification information entered;It whether there is matching target configuration file according to the identification information-enquiry;If
The target configuration file is not present, then establishes target configuration file according to the identification information;It is repaiied according to the modification information
Change the configuration item in the target configuration file.
As shown in Fig. 2, the method for the present embodiment specifically comprises the following steps:
S210, after the operating instruction for obtaining application program, open configuration item reads thread;
S220 obtains modification information input by user and identification information.
Wherein, the modification information input by user includes the information that user increases a target configuration file newly, further includes
Information of the user to the configuration item modification in newly-increased target configuration file;The information of newly-increased target configuration file includes newly-increased mesh
Mark the address information of the name information and newly-increased target configuration file of configuration file.
Wherein, the identification information can be the process number of system distribution, can also be the title of application, or its
It is used to distinguish application program and can determine the mark of Apply Names according to it, and it is not limited by the embodiments of the present invention,
If specifically, the identification information is the process number of system distribution, the corresponding process number of application program is obtained
Mode can according to port numbers inquiry application process number, can also application program directly be checked according to the order method of checking
Process number.It is not limited by the embodiments of the present invention.
Specifically, user inputs modification information and identification information by touch information, language message or by keyboard, eventually
End equipment obtains modification information input by user and identification information.Such as can be that user inputs needs pair in terminal device
The configuration item A of application program A modifies, and is modified as configuration item B, is application program A according to application program, gets using journey
The corresponding process numbers 1234 of sequence A, then it is that the configuration item A of application program A is revised as configuration item B, mark letter to obtain modification information
Breath is process number 1234.
S230 whether there is matching target configuration file according to identification information-enquiry.
Wherein, the application program pair corresponding with identification information is referred to the target configuration file of the identification information match
The configuration file answered.The configuration of the application program corresponding with identification information is accordingly changed if changing the target configuration file
.
Specifically, can be inquiry operation system according to the mode of the matching target configuration file of identification information-enquiry
Under catalogue other than public configuration file, if there are other configurations files, if there are other configurations file, match according to
The file name of file or other file attribute informations are set, judges whether it is mesh with the identification information match of application program
Configuration file is marked, if in the presence of the target configuration file with identification information match, thread is read in configuration item and reads client layer
After public configuration file, the corresponding target configuration file of configuration information is directly read.
S240 establishes target configuration file if target configuration file is not present according to identification information.
Wherein, the configuration item in the target configuration file and configuration rule are identical as public configuration file.The target
The file name of configuration file is different with the file name of public configuration file.
Specifically, if there is no the target configuration files with identification information match under operating system catalogue, according to user
The identification information of input establishes a target configuration file, such as can be, if application program corresponding to identification information is application
Program A, identification information 1234, and under operating system catalogue be not present the corresponding target configuration files of application program A, then according to
Configuration item and configuration rule in public configuration file create a target configuration file Q under operating system catalogue, and target is matched
Set the file name and public configuration file difference of file Q.
S250 changes the configuration item in target configuration file according to modification information.
Specifically, according to the configuration item in the newly-built target configuration file of modification information input by user modification, such as can
To be, if modification information is that configuration item A is revised as configuration item B, the configuration item A in target configuration file is revised as configuring
Item B.
S260 reads the public configuration file that thread reads client layer by configuration item, and public configuration file is by using journey
Sequence and other applications share.
The public configuration file of S270, client layer are changed relative to the public configuration file of application layer, then according to client layer
Public configuration file update application layer public configuration file.
Application is not changed relative to the public configuration file of application layer or updated to the public configuration file of S280, client layer
After the public configuration file of layer, the target configuration file of client layer is changed relative to the target configuration file of application layer, then basis
The target configuration file of the target configuration file update application layer of client layer, target configuration file are used by application program.
Optionally, after establishing target configuration file according to the identification information, further include:
The file name of the target configuration file is changed according to the identification information.
Wherein, the file name original state of the target configuration file can be newly-built configuration file, or its
Its title.
Specifically, the initial file name of target configuration file is changed according to identification information input by user, such as can
To be, the file name of public configuration file is:" config.properties ", user create a target configuration file, mesh
The original document for marking configuration file is entitled " newly-built configuration file ", if it is 1234 that identification information, which is process number, according to process
The file name for number being 1234 modification target configuration files is " config1234.properties ".
Optionally, the file name includes:Primary filename and file extension;
Wherein, primary filename is made of 1-8 character, and extension name is made of 1-3 character, between important name and extension name by
One dot separates.
If specifically, the file name is " config.properties ", primary filename is " config ", file
It extends entitled " properties ".
Correspondingly, the file name for changing the configuration file according to the identification information includes:
The identification information is added to predetermined position before the file extension.
Wherein, the predeterminated position can be the dot preceding document important name between primary filename and file extension
Afterwards.Such as can be:" primary filename "+" identification information "+" "+" file extension ";Can also be:" identification information "+" text
Part important name "+" "+" file extension ".
Wherein, if the original document title of the target configuration file is identical as the file name of public configuration file,
New target configuration file title can be formed by adding identification information directly before file extension.
Specifically, identification information is added in file name predetermined position before file extension, such as can be,
If the filename of original document entitled " config.properties " and public configuration file of newly-built target configuration file
Claim identical, then can add " identification information " before " properties " and obtain the modified filename of target configuration file
Claim " config+ identification informations+.properties ".
In a specific example, application program corresponding all configuration items are realized all in accordance with dynamic configuration item, permit
Perhaps the value of configuration item is dynamically changed in application in operational process;Start a thread for periodically reading configuration item in the application,
It is spaced at regular intervals, re-reads a configuration file, override the value of original configuration item;It is all in terminal device
Using a shared public configuration file (assuming that entitled " config.properties "), which puts
It sets under operating system catalogue, it is unified to use a set of configuration item;If a certain application needs particular arrangement, can be in operation
A target configuration file (corresponding process number of public profile name post-stressing of oneself is created under catalogue of uniting
" config "+" process number "+" .properties ");Public configuration file and application the target configuration file of oneself in addition to file
Except title difference, configuration item is identical with configuration rule.It is first read when the thread reading configuration file for periodically reading configuration item
It takes public configuration file and then updates configuration item, read again update configuration item using the target configuration file of oneself later;When need
When adjusting the configuration of all applications, the configuration item in public configuration file " config.properties " is changed.If
It only needs to adjust some configuration applied, then finds the target configuration file of corresponding process number (if corresponding mesh not yet
Mark configuration file and just create one) modification configuration item.
In another specific example, configuration file Q, configuration file are stored under the operating system catalogue of terminal device
Q is public configuration file, i.e.,:If changing the configuration item in configuration file Q, all application programs in terminal device can be changed
Configuration item.If user needs to be modified the configuration item X of application program A, whether there is under search operation system directory
Configuration file W corresponding with application program A, if there are configuration file W, and in configuration file W comprising configuration item X, configuration item Y with
And configuration item Z, then the configuration item X changed in configuration file become configuration item X1, other configurations item is constant, if being not present, presses
According in configuration file Q configuration item and configuration rule establish configuration file W corresponding with application program A, include in configuration file W
Configuration item X, configuration item Y and configuration item Z, the configuration item X changed in configuration file become configuration item X1, and other configurations item is not
Become.User clicks application program A, and application program A is opened, and open configuration item reads thread to system simultaneously, first reads configuration file
Q, by configuration item X, the configuration item Y in configuration file Q and configuration item X, the configuration item Y in the former configuration file of configuration item Z coverings
And configuration item Z, then read configuration file W, by configuration file W configuration item X1, configuration item Y and configuration item Z covering
Configuration item in former configuration file individually changes the configuration item in application program A with realizing.
The technical solution of the embodiment of the present invention, by obtain application program operating instruction after, open configuration item read line
Journey obtains modification information input by user and identification information;Matched with the presence or absence of matching target according to identification information-enquiry
Set file;If target configuration file is not present, target configuration file is established according to identification information;Mesh is changed according to modification information
Mark the configuration item in configuration file.The public configuration file that thread reads client layer, public configuration file are read by configuration item
It is shared by application program and other applications;The public configuration file of client layer relative to application layer public configuration file more
Change, then updates the public configuration file of application layer according to the public configuration file of client layer;The public configuration file phase of client layer
After the public configuration file of application layer not being changed or being updated the public configuration file of application layer, the target of client layer configures
File is changed relative to the target configuration file of application layer, then the target of application layer is updated according to the target configuration file of client layer
Configuration file, target configuration file are used by application program, with realize need not shut down, and multiple application programs correspond to it is same
In the case of set configuration, configured for a certain specific application modification.
Embodiment three
Fig. 3 is a kind of structural schematic diagram of the configuration device of application program in the embodiment of the present invention three.The present embodiment can
The case where configuration suitable for application program, which can be used software and/or the mode of hardware is realized, which can be integrated in
In the equipment of any configuration feature for providing application program, as shown in figure 3, the configuration device of the application program specifically includes:
First acquisition module 310, read module 320, the first update module 330 and the second update module 340.
Wherein, the first acquisition module 310, after the operating instruction for obtaining application program, open configuration item reads thread;
Read module 320, for reading the public configuration file that thread reads client layer, the public affairs by the configuration item
It is shared by the application program and other applications with configuration file;
First update module 330, public configuration text of the public configuration file relative to application layer for the client layer
Part is changed, then the public configuration file of the application layer is updated according to the public configuration file of the client layer;
Second update module 340, public configuration text of the public configuration file relative to application layer for the client layer
After the public configuration file of the application layer is not changed or updated to part, the target configuration file of the client layer is relative to application
The target configuration file change of layer, the then target that the application layer is updated according to the target configuration file of the client layer configure text
Part, the target configuration file are used by the application program.
Optionally, further include:
Second acquisition module, for obtaining modification information input by user and identification information;
Enquiry module, for whether there is matching target configuration file according to the identification information-enquiry;
Module is established, if being not present for the target configuration file, target configuration is established according to the identification information
File;
First modified module, for changing the configuration item in the target configuration file according to the modification information.
Optionally, further include:
Second modified module is believed after establishing target configuration file according to the identification information according to the mark
Breath changes the file name of the target configuration file.
Optionally, the file name includes:Primary filename and file extension;
Correspondingly, second modified module is specifically used for:
The identification information is added to predetermined position before the file extension.
The technical solution of the present embodiment, by obtain application program operating instruction after, open configuration item read thread;It is logical
It crosses configuration item and reads the public configuration file that thread reads client layer, public configuration file is by application program and other applications
It shares;The public configuration file of client layer is changed relative to the public configuration file of application layer, then is matched according to the public of client layer
Set the public configuration file of file update application layer;Public configuration file of the public configuration file of client layer relative to application layer
After not changing or updating the public configuration file of application layer, the target configuration file of client layer is matched relative to the target of application layer
File amendment is set, then updates the target configuration file of application layer, target configuration file quilt according to the target configuration file of client layer
Application program uses, to realize in the case where that need not shut down and multiple application programs correspond to same set of configuration, for a certain
Specific application modification configuration.
The said goods can perform the method that any embodiment of the present invention is provided, and have the corresponding function module of execution method
And advantageous effect.
Example IV
Fig. 4 is a kind of structural schematic diagram of computer equipment in the embodiment of the present invention four.Fig. 4 shows real suitable for being used for
The block diagram of the exemplary computer device 12 of existing embodiment of the present invention.The computer equipment 12 that Fig. 4 is shown is only one and shows
Example, should not bring any restrictions to the function and use scope of the embodiment of the present invention.
As shown in figure 4, computer equipment 12 is showed in the form of universal computing device.The component of computer equipment 12 can be with
Including but not limited to:One or more processor or processing unit 16, system storage 28 connect different system component
The bus 18 of (including system storage 28 and processing unit 16).
Bus 18 indicates one or more in a few class bus structures, including memory bus or Memory Controller,
Peripheral bus, graphics acceleration port, processor or the local bus using the arbitrary bus structures in a variety of bus structures.It lifts
For example, these architectures include but not limited to industry standard architecture (ISA) bus, microchannel architecture (MAC)
Bus, enhanced isa bus, Video Electronics Standards Association (VESA) local bus and peripheral component interconnection (PCI) bus.
Computer equipment 12 typically comprises a variety of computer system readable media.These media can be it is any can be by
The usable medium that computer equipment 12 accesses, including volatile and non-volatile media, moveable and immovable medium.
System storage 28 may include the computer system readable media of form of volatile memory, such as arbitrary access
Memory (RAM) 30 and/or cache memory 32.Computer equipment 12 may further include it is other it is removable/can not
Mobile, volatile/non-volatile computer system storage medium.Only as an example, storage system 34 can be used for reading and writing not
Movably, non-volatile magnetic media (Fig. 4 do not show, commonly referred to as " hard disk drive ").It although not shown in fig 4, can be with
It provides for the disc driver to moving non-volatile magnetic disk (such as " floppy disk ") read-write, and to removable non-volatile
The CD drive of CD (such as CD-ROM, DVD-ROM or other optical mediums) read-write.In these cases, each driving
Device can be connected by one or more data media interfaces with bus 18.Memory 28 may include at least one program production
There is one group of (for example, at least one) program module, these program modules to be configured to perform of the invention each for product, the program product
The function of embodiment.
Program/utility 40 with one group of (at least one) program module 42 can be stored in such as memory 28
In, such program module 42 includes --- but being not limited to --- operating system, one or more application program, other programs
Module and program data may include the realization of network environment in each or certain combination in these examples.Program mould
Block 42 usually executes function and/or method in embodiment described in the invention.
Computer equipment 12 can also be with one or more external equipments 14 (such as keyboard, sensing equipment, display 24
Deng) communication, can also be enabled a user to one or more equipment interact with the computer equipment 12 communicate, and/or with make
The computer equipment 12 any equipment (such as network interface card, the modulatedemodulate that can be communicated with one or more of the other computing device
Adjust device etc.) communication.This communication can be carried out by input/output (I/O) interface 22.In addition, the calculating in the present embodiment
Machine equipment 12, display 24 exist not as independent individual, but in embedded minute surface, it is not aobvious in the display surface of display 24
When showing, the display surface of display 24 visually combines together with minute surface.Also, computer equipment 12 can also be suitable by network
Orchestration 20 and one or more network (such as LAN (LAN), wide area network (WAN) and/or public network, such as internet)
Communication.As shown, network adapter 20 is communicated by bus 18 with other modules of computer equipment 12.It should be understood that the greatest extent
Pipe is not shown in figure, and other hardware and/or software module can be used in conjunction with computer equipment 12, including but not limited to:Micro- generation
Code, device driver, redundant processing unit, external disk drive array, RAID system, tape drive and data backup are deposited
Storage system etc..
Processing unit 16 is stored in program in system storage 28 by operation, to perform various functions application and
Data processing, such as realize the configuration method for the application program that the embodiment of the present invention is provided:The operation for obtaining application program refers to
After order, open configuration item reads thread;The public configuration file that thread reads client layer, the public affairs are read by the configuration item
It is shared by the application program and other applications with configuration file;The public configuration file of the client layer is relative to application
The public configuration file change of layer then updates the public configuration text of the application layer according to the public configuration file of the client layer
Part;The application layer is not changed relative to the public configuration file of application layer or updated to the public configuration file of the client layer
Public configuration file after, the target configuration file of the client layer is changed relative to the target configuration file of application layer, then root
The target configuration file of the application layer is updated according to the target configuration file of the client layer, the target configuration file is described
Application program uses.
Embodiment five
The embodiment of the present invention five provides a kind of computer readable storage medium, is stored thereon with computer program, the journey
The configuration method of the application program provided such as all inventive embodiments of the application is provided when sequence is executed by processor:It obtains and applies journey
After the operating instruction of sequence, open configuration item reads thread;The public configuration that thread reads client layer is read by the configuration item
File, the public configuration file are shared by the application program and other applications;The public configuration text of the client layer
Part is changed relative to the public configuration file of application layer, then updates the application layer according to the public configuration file of the client layer
Public configuration file;The public configuration file of the client layer is not changed or more relative to the public configuration file of application layer
After the public configuration file of the new application layer, the target configuration file of the client layer configures text relative to the target of application layer
Part is changed, then the target configuration file of the application layer is updated according to the target configuration file of the client layer, the target is matched
File is set to be used by the application program.
The arbitrary combination of one or more computer-readable media may be used.Computer-readable medium can be calculated
Machine readable signal medium or computer readable storage medium.Computer readable storage medium for example can be --- but it is unlimited
In --- electricity, system, device or the device of magnetic, optical, electromagnetic, infrared ray or semiconductor, or the arbitrary above combination.It calculates
The more specific example (non exhaustive list) of machine readable storage medium storing program for executing includes:Electrical connection with one or more conducting wires, just
It takes formula computer disk, hard disk, random access memory (RAM), read-only memory (ROM), erasable type and may be programmed read-only storage
Device (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device,
Or above-mentioned any appropriate combination.In this document, can be any include computer readable storage medium or storage journey
The tangible medium of sequence, the program can be commanded the either device use or in connection of execution system, device.
Computer-readable signal media may include in a base band or as the data-signal that a carrier wave part is propagated,
Wherein carry computer-readable program code.Diversified forms may be used in the data-signal of this propagation, including --- but
It is not limited to --- electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be
Any computer-readable medium other than computer readable storage medium, which can send, propagate or
Transmission for by instruction execution system, device either device use or program in connection.
The program code for including on computer-readable medium can transmit with any suitable medium, including --- but it is unlimited
In --- wireless, electric wire, optical cable, RF etc. or above-mentioned any appropriate combination.
It can be write with one or more programming languages or combinations thereof for executing the computer that operates of the present invention
Program code, described program design language include object oriented program language-such as Java, Smalltalk, C++,
Further include conventional procedural programming language-such as " C " language or similar programming language.Program code can be with
It fully executes, partly execute on the user computer on the user computer, being executed as an independent software package, portion
Divide and partly executes or executed on a remote computer or server completely on the remote computer on the user computer.
Be related in the situation of remote computer, remote computer can pass through the network of any kind --- including LAN (LAN) or
Wide area network (WAN)-be connected to subscriber computer, or, it may be connected to outer computer (such as carried using Internet service
It is connected by internet for quotient).
Note that above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that
The present invention is not limited to specific embodiments described here, can carry out for a person skilled in the art it is various it is apparent variation,
It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out to the present invention by above example
It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also
May include other more equivalent embodiments, and the scope of the present invention is determined by scope of the appended claims.
Claims (10)
1. a kind of configuration method of application program, which is characterized in that including:
After the operating instruction for obtaining application program, open configuration item reads thread;
The public configuration file that thread reads client layer is read by the configuration item, the public configuration file is by the application
Program and other applications share;
The public configuration file of the client layer is changed relative to the public configuration file of application layer, then according to the client layer
Public configuration file updates the public configuration file of the application layer;
The application is not changed relative to the public configuration file of application layer or updated to the public configuration file of the client layer
After the public configuration file of layer, the target configuration file of the client layer is changed relative to the target configuration file of application layer, then
The target configuration file of the application layer is updated according to the target configuration file of the client layer, the target configuration file is by institute
State application program use.
2. according to the method described in claim 1, it is characterized in that, reading the public affairs that thread reads client layer by the configuration item
Further include before the public configuration file is shared by the application program and other applications with configuration file:
Obtain modification information input by user and identification information;
It whether there is matching target configuration file according to the identification information-enquiry;
If the target configuration file is not present, target configuration file is established according to the identification information;
The configuration item in the target configuration file is changed according to the modification information.
3. according to the method described in claim 2, it is characterized in that, according to the identification information establish target configuration file it
Afterwards, further include:
The file name of the target configuration file is changed according to the identification information.
4. according to the method described in claim 3, it is characterized in that, the file name includes:Primary filename and file extent
Name;
Correspondingly, the file name for changing the configuration file according to the identification information includes:
The identification information is added to predetermined position before the file extension.
5. a kind of configuration device of application program, which is characterized in that including:
First acquisition module, after the operating instruction for obtaining application program, open configuration item reads thread;
Read module, for reading the public configuration file that thread reads client layer, the public configuration by the configuration item
File is shared by the application program and other applications;
First update module, the public configuration file for the client layer are changed relative to the public configuration file of application layer,
The public configuration file of the application layer is then updated according to the public configuration file of the client layer;
Second update module, the public configuration file for the client layer are not changed relative to the public configuration file of application layer
Or after the public configuration file of the update application layer, the target of the target configuration file of the client layer relative to application layer
Configuration file is changed, then the target configuration file of the application layer is updated according to the target configuration file of the client layer, described
Target configuration file is used by the application program.
6. device according to claim 5, which is characterized in that further include:
Second acquisition module, for obtaining modification information input by user and identification information;
Enquiry module, for whether there is matching target configuration file according to the identification information-enquiry;
Module is established, if being not present for the target configuration file, target configuration file is established according to the identification information;
First modified module, for changing the configuration item in the target configuration file according to the modification information.
7. device according to claim 6, which is characterized in that further include:
Second modified module is repaiied after establishing target configuration file according to the identification information according to the identification information
Change the file name of the target configuration file.
8. device according to claim 7, which is characterized in that the file name includes:Primary filename and file extent
Name;
Correspondingly, second modified module is specifically used for:
The identification information is added to predetermined position before the file extension.
9. a kind of computer equipment, including memory, processor and storage are on a memory and the meter that can run on a processor
Calculation machine program, which is characterized in that the processor realizes the side as described in any in claim 1-4 when executing described program
Method.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor
The method as described in any in claim 1-4 is realized when execution.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810390789.4A CN108595223A (en) | 2018-04-27 | 2018-04-27 | A kind of configuration method of application program, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810390789.4A CN108595223A (en) | 2018-04-27 | 2018-04-27 | A kind of configuration method of application program, device, equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108595223A true CN108595223A (en) | 2018-09-28 |
Family
ID=63610470
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810390789.4A Pending CN108595223A (en) | 2018-04-27 | 2018-04-27 | A kind of configuration method of application program, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108595223A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110362314A (en) * | 2019-07-12 | 2019-10-22 | Oppo广东移动通信有限公司 | Information processing method and device, computer-readable medium, electronic equipment |
CN111125098A (en) * | 2019-12-06 | 2020-05-08 | 中国人民财产保险股份有限公司 | Access method of application front end containing multiple modules, module registration method and device |
CN112650509A (en) * | 2020-12-24 | 2021-04-13 | 苏州达家迎信息技术有限公司 | Application installation package generation method and device, computer equipment and storage medium |
CN113179183A (en) * | 2021-04-29 | 2021-07-27 | 杭州迪普科技股份有限公司 | Service switch state control device and method |
CN115098191A (en) * | 2022-07-06 | 2022-09-23 | 深圳市云鼠科技开发有限公司 | Configuration method and device of sweeping robot software, electronic equipment and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2006118872A2 (en) * | 2005-04-29 | 2006-11-09 | Microsoft Corporation | Application description language |
CN102567081A (en) * | 2010-12-07 | 2012-07-11 | 腾讯科技(深圳)有限公司 | Multi-process-based global setting method and multi-process-based global setting system |
CN102929650A (en) * | 2012-07-11 | 2013-02-13 | 北京金山安全软件有限公司 | Method and device for independently configuring application program running environment and mobile device |
CN105407138A (en) * | 2015-10-23 | 2016-03-16 | 上海斐讯数据通信技术有限公司 | Configuration file loading method and apparatus, and communication equipment |
CN105893063A (en) * | 2016-06-13 | 2016-08-24 | 积成电子股份有限公司 | Application program interface based on XML format configuration file and construction method of application program interface |
CN107291487A (en) * | 2016-04-13 | 2017-10-24 | 平安科技(深圳)有限公司 | CONFIG.SYS amending method and system |
-
2018
- 2018-04-27 CN CN201810390789.4A patent/CN108595223A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2006118872A2 (en) * | 2005-04-29 | 2006-11-09 | Microsoft Corporation | Application description language |
CN102567081A (en) * | 2010-12-07 | 2012-07-11 | 腾讯科技(深圳)有限公司 | Multi-process-based global setting method and multi-process-based global setting system |
CN102929650A (en) * | 2012-07-11 | 2013-02-13 | 北京金山安全软件有限公司 | Method and device for independently configuring application program running environment and mobile device |
CN105407138A (en) * | 2015-10-23 | 2016-03-16 | 上海斐讯数据通信技术有限公司 | Configuration file loading method and apparatus, and communication equipment |
CN107291487A (en) * | 2016-04-13 | 2017-10-24 | 平安科技(深圳)有限公司 | CONFIG.SYS amending method and system |
CN105893063A (en) * | 2016-06-13 | 2016-08-24 | 积成电子股份有限公司 | Application program interface based on XML format configuration file and construction method of application program interface |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110362314A (en) * | 2019-07-12 | 2019-10-22 | Oppo广东移动通信有限公司 | Information processing method and device, computer-readable medium, electronic equipment |
CN110362314B (en) * | 2019-07-12 | 2023-10-24 | Oppo广东移动通信有限公司 | Information processing method and device, computer readable medium and electronic equipment |
CN111125098A (en) * | 2019-12-06 | 2020-05-08 | 中国人民财产保险股份有限公司 | Access method of application front end containing multiple modules, module registration method and device |
CN111125098B (en) * | 2019-12-06 | 2021-02-05 | 中国人民财产保险股份有限公司 | Access method of application front end containing multiple modules, module registration method and device |
CN112650509A (en) * | 2020-12-24 | 2021-04-13 | 苏州达家迎信息技术有限公司 | Application installation package generation method and device, computer equipment and storage medium |
CN112650509B (en) * | 2020-12-24 | 2023-02-28 | 苏州达家迎信息技术有限公司 | Application installation package generation method and device, computer equipment and storage medium |
CN113179183A (en) * | 2021-04-29 | 2021-07-27 | 杭州迪普科技股份有限公司 | Service switch state control device and method |
CN115098191A (en) * | 2022-07-06 | 2022-09-23 | 深圳市云鼠科技开发有限公司 | Configuration method and device of sweeping robot software, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP7108122B2 (en) | Selection of synthetic voices for agents by computer | |
CN108595223A (en) | A kind of configuration method of application program, device, equipment and storage medium | |
US12067990B2 (en) | Intelligent assistant for home automation | |
US10579228B2 (en) | Method and system for configuring selection of contextual dashboards | |
US20180096283A1 (en) | Selection of computational agent for task performance | |
WO2014144483A1 (en) | Managing policy and permissions profiles | |
US11663535B2 (en) | Multi computational agent performance of tasks | |
US20150067503A1 (en) | System and method for virtual assistants with agent store | |
CN108628649B (en) | Intelligent setup of assistant services | |
US11080068B2 (en) | Adaptive user-interface assembling and rendering | |
CN109840257A (en) | Data base query method, device, computer installation and readable storage medium storing program for executing | |
CN108733787A (en) | Database operation method, device, electronic equipment and storage medium | |
CN106933891A (en) | Access the method for distributed data base and the device of Distributed database service | |
CN108431768A (en) | Using the controlled deployment of feature | |
KR20210134251A (en) | Method and device for updating user image recognition model | |
US10187395B2 (en) | Resource sharing and designation of permissions for other tenants and unregistered users of same tenant | |
CN114844629B (en) | Blockchain account verification method, device, computer equipment and storage medium | |
CN109408539A (en) | Data manipulation method, device, server and storage medium | |
CN108111374A (en) | Method, apparatus, equipment and the computer storage media of synchronizer list | |
US20120324034A1 (en) | Providing access to shared state data | |
US20200379786A1 (en) | Keyboard interaction model for software builder canvas nodes | |
CN111414591A (en) | Workflow management method and device | |
CN117688615B (en) | Cloud asset management method and device, electronic equipment and storage medium | |
KR102654344B1 (en) | Method and system for evaluating chat-bot based on blockchain | |
CN109885707A (en) | The method for refreshing of picture, device, terminal device and storage medium in picture library |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180928 |