CN112558949A - Program construction method, program construction device, electronic device, and storage medium - Google Patents

Program construction method, program construction device, electronic device, and storage medium Download PDF

Info

Publication number
CN112558949A
CN112558949A CN202011516595.8A CN202011516595A CN112558949A CN 112558949 A CN112558949 A CN 112558949A CN 202011516595 A CN202011516595 A CN 202011516595A CN 112558949 A CN112558949 A CN 112558949A
Authority
CN
China
Prior art keywords
functional module
module
configuration
program
information
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
Application number
CN202011516595.8A
Other languages
Chinese (zh)
Inventor
崔永清
张军旺
潘永高
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Changsha Rootcloud Technology Co ltd
Rootcloud Technology Co Ltd
Original Assignee
Changsha Rootcloud Technology Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Changsha Rootcloud Technology Co ltd filed Critical Changsha Rootcloud Technology Co ltd
Priority to CN202011516595.8A priority Critical patent/CN112558949A/en
Publication of CN112558949A publication Critical patent/CN112558949A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Abstract

In the program construction method, the program construction device, the electronic device and the storage medium, the electronic device generates the service instance of each functional module in the memory according to the configuration information of each functional module in the configuration file based on the configuration file of the target program. Since each functional module can provide an independent service function, the functions of the existing functional modules can be reused through the configuration file, and the development efficiency can be further improved.

Description

Program construction method, program construction device, electronic device, and storage medium
Technical Field
The present application relates to the field of computers, and in particular, to a method and an apparatus for constructing an item program, an electronic device, and a storage medium.
Background
Software is abstract and simulated in the real world, different designs need to be made for different services in the development process, however, different services have certain commonality, so that different designs for different services can be repeatedly developed, and the development efficiency is poor.
Disclosure of Invention
In a first aspect, an embodiment of the present application provides a program construction method, which is applied to an electronic device, and the method includes:
acquiring a configuration file of a target program, wherein the configuration file records identification information of each functional module required by the target program and configuration information of each functional module;
analyzing the configuration file to obtain identification information of each functional module and configuration information of each functional module;
and aiming at each functional module, generating a service instance of the functional module in a memory according to the identification information of the functional module and the configuration information of the functional module.
In a possible implementation manner, monitoring whether new configuration information is added to the configuration file, wherein the new configuration information corresponds to a new functional module;
and if so, generating a new service instance in the memory according to the new configuration information, wherein the new service instance corresponds to the new functional module.
In a possible implementation manner, before generating a service instance of the functional module in the memory according to the identification information of the functional module and the configuration information of the functional module, the method further includes:
detecting whether a service instance of the functional module already exists in a memory;
and if so, ignoring the functional module.
In a possible implementation manner, the generating, in the memory, the service instance of the functional module according to the identification information of the functional module and the configuration information of the functional module includes:
determining instruction data of the functional module according to the identification information of the functional module, wherein the instruction data comprises computer executable instructions for realizing the service function corresponding to the functional module;
initializing module attributes corresponding to the configuration information in the instruction data according to the configuration information of the functional module;
and loading the initialized instruction data into a memory to generate a service instance of the functional module.
In a possible implementation manner, the function modules include a first function module and a second function module, where the first function module belongs to a first hierarchy, the second function module belongs to a second hierarchy, and the function module corresponding to the second hierarchy is constructed based on the function module corresponding to the first hierarchy.
In a possible implementation manner, before the obtaining the configuration file of the target program, the method further includes:
providing a configuration interface;
responding to a first configuration operation of the configuration interface, and obtaining a target industry to which the target program belongs;
providing module identification of candidate function modules according to the target industry, wherein the candidate function modules belong to the target industry;
and responding to the second configuration operation of the configuration interface to generate the configuration file.
In a possible implementation manner, the configuring, by the electronic device, an association relationship between the candidate function modules, and the generating the configuration file in response to the second configuration operation of the configuration interface includes:
responding to the module selection operation of the configuration interface, and determining a selected functional module;
responding to module configuration operation in the configuration interface for the functional module, and acquiring configuration information of the functional module;
determining candidate function modules associated with the function modules according to the association relation;
displaying module identifications of candidate function modules related to the function modules on the configuration interface;
and responding to the file generation operation in the configuration interface, and generating the configuration file according to the configuration information and the module identification of all the functional modules.
In a second aspect, an embodiment of the present application provides a program configuration apparatus, including:
the configuration acquisition module is used for acquiring a configuration file of a target program, wherein the configuration file records identification information of each functional module, architecture information among the functional modules and configuration information of each functional module, which are required by the target program;
the configuration analysis module is used for analyzing the configuration file to acquire the identification information, the architecture information and the configuration information;
and the instance generation module is used for generating a service instance of the functional module in the memory according to the identification information of the functional module, the architecture information of the functional module and the configuration information of the functional module aiming at each functional module.
In a third aspect, an embodiment of the present application provides an electronic device, where the electronic device includes a processor and a memory, where the memory stores a computer program, and when executed by the processor, computer-executable instructions in the computer program implement the program constructing method.
In a fourth aspect, an embodiment of the present application provides a storage medium, where a computer program is stored, and when a processor executes computer-executable instructions in the computer program, the program constructing method is implemented.
Compared with the prior art, the method has the following beneficial effects:
in the program construction method, the program construction device, the electronic device, and the storage medium provided in the embodiments of the present application, the electronic device generates a service instance of each function module in a memory according to configuration information of each function module in a configuration file of a target program based on the configuration file of the target program. Since each functional module can provide an independent service function, the functions of the existing functional modules can be reused through the configuration file, and the development efficiency can be further improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
FIG. 2 is a flow chart illustrating steps of a method for constructing a program according to an embodiment of the present disclosure;
FIG. 3 is a program abstraction hierarchy relationship diagram provided by an embodiment of the present application;
fig. 4 is a code level mapping relationship diagram provided in the embodiment of the present application;
fig. 5 is a schematic structural diagram of a program configuring device according to an embodiment of the present application.
Icon: 120-a memory; 130-a processor; 140-a communication device; 1101-a configuration acquisition module; 1102-configuration parsing module; 1103-instance generation module.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
In the related art, different designs need to be made on software for different services, however, there is a certain commonality between different services, so that different designs on software for different services can be repeatedly developed, which leads to poor development efficiency.
In view of this, the present application provides a program constructing method applied to an electronic device. The electronic equipment configures the existing functional module through the configuration file, and generates a service instance corresponding to the functional module according to the configuration information in the configuration file so as to achieve the purpose of reusing the functions of the existing functional module.
The electronic device may be, but is not limited to, a server, a Personal Computer (PC), an intelligent terminal, and the like.
In addition, referring to fig. 1, fig. 1 is a schematic structural diagram of the electronic device. The electronic device comprises a memory 120, a processor 130, and a communication means 140.
The memory 120, processor 130, and communication device 140 are electrically connected to each other directly or indirectly to enable data transmission or interaction. For example, the components may be electrically connected to each other via one or more communication buses or signal lines.
The Memory 120 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), and the like. The memory 120 is used for storing a program, and the processor 130 executes the program after receiving the execution instruction. The communication device 140 is used for transmitting and receiving data through a network.
The processor 130 may be an integrated circuit chip having signal processing capabilities. The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Referring to fig. 2, fig. 2 is a flowchart of a program constructing method applied to the electronic device shown in fig. 1, and the method including various steps will be described in detail below. As shown in fig. 2, the program construction method includes:
step S101, acquiring a configuration file of the target program.
The configuration file records identification information of each functional module and configuration information of each functional module required by the target program.
The number of the functional modules can be one or more, and depends on the service complexity of the target program. Each functional module is a program module which is developed in advance by developers according to specific service functions and can be independently operated in a thread or process mode. Naturally, the functional modules are also combined with each other to form a new functional module, and the new functional module is operated in a thread or process manner. Alternatively, the target program may be an application program running on the server.
Step S102, analyzing the configuration file, and acquiring the identification information of each functional module and the configuration information of each functional module.
It should be understood that in the embodiments of the present application, the program architecture is divided into at least five layers. As shown in fig. 3, an application interface layer, a business layer, a logic layer, a core layer, and a platform abstraction layer may be included.
The application interface layer is an external function outlet, and the platform abstraction layer is a part related to a concrete platform and is used for isolating concrete platform differences (for example, a linux operating system platform and a windows operating system platform). The application interface layer and the platform abstraction layer comprise a business layer, a logic layer and a core layer, and the core layer is used for realizing a part of specific functions.
The core layer is used to provide the lowest level of functionality, encapsulate the most basic network communications, log printing, and some functionality to provide the most basic support to the upper layers.
The logic layer is to combine partial functional modules of a bottom layer (e.g., a core layer) to implement some simple logics, for example, to implement abstraction of connections under different network protocols, to unify network communication modes, and the like, and the part is an independent part with similar components and has a perfect state management function.
The service layer is a part for realizing the combination of the logic layer according to the service, and is a high-level representation of the service, that is, functions required by the end user are combined in the layer and are externally released through the application interface layer.
In concept understanding, the middle three layers are a subdivision process of the whole, and can be unified into a service layer, and only under the condition that codes are complex, the relation of each part can be more clearly defined, and functions and concrete implementation can be independently divided.
In the embodiment of the present application, the configuration file may be a configuration file in an XML (Extensible Markup Language) format. For example, the configuration file may describe the target program as follows:
<product>
<name>ProductA</name>
<parts>
<part name="Partl"type="TypeA">
<version>Version1.0</version>
<connection>ConnectionA</connection>
</part>
</parts>
<connections>
<connection name="ConnectionA"type="TCP">
<ip>192.168.1.125</ip>
<port>6666</port>
<protocol>http</protocot>
</connection>
</connections>
</product>
in the configuration file, product a indicates the name of the target program, and the tag < parts > </parts > is used for recording the function modules required by the target program. The configuration accessory indicates that the target program needs the function module of connection, and the function module is named as connection a, and is specifically used for network connection. In the corresponding configuration information, the network address is 192.168.1.125, the port number is 6666, and the communication Protocol is http (HyperText Transfer Protocol).
And based on the configuration file, mapping to a code layer according to the hierarchical relation represented by the configuration file when generating the service instance. Fig. 4 is a schematic diagram of the structure of mapping the configuration file to the code layer. Since the target program is based on the computer language Java, as shown in fig. 4, the function module Connection is a specific implementation of an interface Iconnection in Java, and Part is a specific implementation of an interface IPart in Java.
In this embodiment, the function module of the target program may include a first function module and a second function module, where the first function module belongs to a first hierarchy, the second function module belongs to a second hierarchy, and the function module corresponding to the second hierarchy is constructed based on the function module corresponding to the first hierarchy.
Also taking the above configuration file as an example, the Product actually belongs to the service layer, and the Connection belongs to the logic layer, i.e. the second level; the Product may also include a functional module of the core layer, i.e., the first hierarchy. Therefore, although the logical layers are constructed based on the core layer, the functional modules are not limited to the same hierarchy when constructing the Product of the business layer.
That is, the configuration file is an abstract representation of the above hierarchical relationship, and the representation is materialized into the memory in the process of generating the service instance, so as to complete the construction of the target program. The business function can be completed only by adding the combinational logic codes of the interface layer and the business layer, and repeated development is not needed. Therefore, the program constructing method further includes:
step S103, aiming at each functional module, generating a service instance of the functional module in the memory according to the identification information of the functional module and the configuration information of the functional module.
Because each function module is a program module developed in advance by a developer for a specific service function, that is, each function module corresponds to a corresponding computer executable instruction, the electronic device determines instruction data of the function module according to the identification information of the function module.
The electronic equipment initializes the module attribute corresponding to the configuration information in the instruction data according to the configuration information of the functional module; and loading the initialized instruction data into the memory to generate a service instance of the functional module.
Through the method, the electronic equipment generates the service instance of each functional module in the memory according to the configuration information of each functional module in the configuration file based on the configuration file of the target program. Since each functional module can provide an independent service function, the functions of the existing functional modules can be reused through the configuration file, and the development efficiency can be further improved.
In addition, in the embodiment of the application, a new functional module can be dynamically added. The electronic equipment monitors whether the configuration file is changed in real time, and once the configuration file is monitored, new configuration information is added; and generating a new service instance in the memory according to the new configuration information, wherein the new configuration information corresponds to the new functional module, and the new service instance corresponds to the new functional module. Namely, the electronic equipment provides service functions to the outside through the new service instance.
As a possible implementation manner of the functional module, the functional module may be implemented based on Java in a computer language, and when a new functional module is dynamically loaded, the functional module may be implemented by using a reflection mechanism of Java.
Therefore, in the embodiment of the present application, when a new function module is added, dynamic addition can be performed without stopping the target program.
In addition, in the embodiment of the present application, in consideration of the need to reduce the redundancy of the function module as much as possible, in step S103, before generating the service instance of the function module in the memory according to the identification information of the function module and the configuration information of the function module, the electronic device detects whether the service instance of the function module already exists in the memory; if yes, the functional module is ignored.
In other words, in the embodiment of the present application, before the electronic device generates the service instance, once it is detected that the same service instance exists in the memory, the electronic device ignores the function module and does not create the corresponding service instance.
Because business requirements of different industries have certain differences, for example, a user can conveniently screen the functional module, in the embodiment of the application, the electronic device provides a configuration interface. Wherein, a text input box is provided in the configuration interface for the user to input the industry (such as logistics industry, fresh industry, e-commerce industry, food industry, etc.) to which the target program belongs. Of course, the electronic device may also provide preset industry options for the user to select.
The electronic equipment responds to a first configuration operation of a configuration interface to obtain a target industry to which a target program belongs; and providing module identification of the candidate function module according to the target industry, wherein the candidate function module belongs to the target industry. Therefore, module identifications of a plurality of candidate function modules are displayed in the configuration interface. The user can browse the configuration interface, select a functional module for constructing the target program from the candidate functional modules, and configure the selected functional module.
Accordingly, the electronic device generates a configuration file in response to a second configuration operation of the configuration interface.
The second configuration operation specifically includes a module selection operation, a module configuration operation, and a file generation operation.
Based on the configuration interface, the electronic equipment can also respond to the module configuration operation of the configuration interface to determine the selected functional module; because the electronic equipment displays the module identification of the candidate functional module of the industry to which the target program belongs through the configuration interface, the user can select the functional module required for constructing the target program from the module identification.
And responding to the module configuration operation in the configuration interface aiming at the selected functional module to obtain the configuration information of the functional module.
In the embodiment of the application, in order to improve the screening efficiency of the user on the candidate modules, the electronic device is configured with the association relationship among the candidate modules. The association characterizes the frequent concurrent use between different candidate modules. Therefore, the electronic equipment determines candidate function modules associated with the function modules according to the association relation; and displaying the module identification of the candidate function module associated with the function module on a configuration interface.
For example, the log function module is usually used together with the file read-write module or the database access module, so that when the user selects the log function module, the electronic device provides an area in the configuration interface to display the module identifiers of the file read-write module and the database access module which are associated with the log function module.
Similarly, data reporting modules are typically used with diagramming modules, so that if a user selects a data reporting module, an area is provided in the configuration interface to display the module identification of the diagramming module.
And finally, the electronic equipment responds to the file generation operation in the configuration interface and generates a configuration file according to the configuration information and the module identification of all the functional modules.
It should be noted that the user may also manually edit the configuration file according to the above-mentioned grammar rule of the configuration file to generate the configuration file.
Referring to fig. 5, based on the same inventive concept, an embodiment of the present application further provides a program constructing apparatus, which includes at least one functional module that can be stored in a memory in a software form. Functionally divided, the program constructing means may comprise:
the configuration acquiring module 1101 is configured to acquire a configuration file of the target program, where the configuration file records identification information of each functional module, architecture information between each functional module, and configuration information of each functional module, which are required by the target program.
In this embodiment, when the computer executable instructions in the configuration obtaining module 1101 are executed by a processor, step S101 in fig. 2 is implemented, and for the detailed description of the configuration obtaining module 1101, reference may be made to the detailed description of step S101.
The configuration parsing module 1102 is configured to parse the configuration file to obtain the identification information, the architecture information, and the configuration information.
In this embodiment of the application, when the computer executable instructions in the configuration parsing module 1102 are executed by the processor, step S102 in fig. 2 is implemented, and for the detailed description of the configuration parsing module 1102, reference may be made to the detailed description of step S102.
An instance generating module 1103, configured to generate, for each function module, a service instance of the function module in the memory according to the identifier information of the function module, the architecture information of the function module, and the configuration information of the function module.
In this embodiment of the application, when the computer executable instructions in the instance generating module 1103 are executed by the processor, step S103 in fig. 2 is implemented, and for the detailed description of the instance generating module 1103, reference may be made to the detailed description of step S103.
The embodiment of the application also provides an electronic device, which comprises a processor and a memory, wherein the memory stores a computer program, and when a computer executable instruction in the computer program is executed by the processor, the program constructing method is realized.
The embodiment of the application also provides a storage medium, wherein the storage medium stores a computer program, and when computer-executable instructions in the computer program are executed by a processor, the program constructing method is realized.
To sum up, in the program constructing method, the program constructing apparatus, the electronic device, and the storage medium provided in the embodiments of the present application, the electronic device generates the service instance of each functional module in the memory according to the configuration information of each functional module in the configuration file based on the configuration file of the target program. Since each functional module can provide an independent service function, the functions of the existing functional modules can be reused through the configuration file, and the development efficiency can be further improved.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above description is only for various embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of changes or substitutions within the technical scope of the present application, and all such changes or substitutions are included in the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A program construction method applied to an electronic device, the method comprising:
acquiring a configuration file of a target program, wherein the configuration file records identification information of each functional module required by the target program and configuration information of each functional module;
analyzing the configuration file to obtain identification information of each functional module and configuration information of each functional module;
and aiming at each functional module, generating a service instance of the functional module in a memory according to the identification information of the functional module and the configuration information of the functional module.
2. The procedural construction method of claim 1, the method further comprising:
monitoring whether new configuration information is added to the configuration file or not, wherein the new configuration information corresponds to a new functional module;
and if so, generating a new service instance in the memory according to the new configuration information, wherein the new service instance corresponds to the new functional module.
3. The program constructing method according to claim 1, wherein before the generating of the service instance of the functional module in the memory based on the identification information of the functional module and the configuration information of the functional module, the method further comprises:
detecting whether a service instance of the functional module already exists in a memory;
and if so, ignoring the functional module.
4. The program constructing method according to claim 1, wherein the generating a service instance of the functional module in the memory according to the identification information of the functional module and the configuration information of the functional module includes:
determining instruction data of the functional module according to the identification information of the functional module, wherein the instruction data comprises computer executable instructions for realizing the service function corresponding to the functional module;
initializing module attributes corresponding to the configuration information in the instruction data according to the configuration information of the functional module;
and loading the initialized instruction data into a memory to generate a service instance of the functional module.
5. The program constructing method according to claim 1, wherein the function modules include a first function module and a second function module, wherein the first function module belongs to a first hierarchy, and the second function module belongs to a second hierarchy, and the function module corresponding to the second hierarchy is constructed based on the function module corresponding to the first hierarchy.
6. The program construction method according to claim 1, wherein before the obtaining of the configuration file of the target program, the method further comprises:
providing a configuration interface;
responding to a first configuration operation of the configuration interface, and obtaining a target industry to which the target program belongs;
providing module identification of candidate function modules according to the target industry, wherein the candidate function modules belong to the target industry;
and responding to the second configuration operation of the configuration interface to generate the configuration file.
7. The program construction method according to claim 6, wherein the electronic device is configured with an association relationship between the candidate function modules, and the generating the configuration file in response to the second configuration operation of the configuration interface comprises:
responding to the module selection operation of the configuration interface, and determining a selected functional module;
responding to module configuration operation in the configuration interface for the functional module, and acquiring configuration information of the functional module;
determining candidate function modules associated with the function modules according to the association relation;
displaying module identifications of candidate function modules related to the function modules on the configuration interface;
and responding to the file generation operation in the configuration interface, and generating the configuration file according to the configuration information and the module identification of all the functional modules.
8. A program construct device, the program construct device comprising:
the configuration acquisition module is used for acquiring a configuration file of a target program, wherein the configuration file records identification information of each functional module, architecture information among the functional modules and configuration information of each functional module, which are required by the target program;
the configuration analysis module is used for analyzing the configuration file to acquire the identification information, the architecture information and the configuration information;
and the instance generation module is used for generating a service instance of the functional module in the memory according to the identification information of the functional module, the architecture information of the functional module and the configuration information of the functional module aiming at each functional module.
9. An electronic device, comprising a processor and a memory, wherein the memory stores a computer program, and wherein computer-executable instructions in the computer program, when executed by the processor, implement the program construction method of any one of claims 1 to 7.
10. A storage medium, characterized in that the storage medium stores a computer program in which computer-executable instructions are executed by a processor to implement the program constructing method of any one of claims 1 to 7.
CN202011516595.8A 2020-12-21 2020-12-21 Program construction method, program construction device, electronic device, and storage medium Pending CN112558949A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011516595.8A CN112558949A (en) 2020-12-21 2020-12-21 Program construction method, program construction device, electronic device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011516595.8A CN112558949A (en) 2020-12-21 2020-12-21 Program construction method, program construction device, electronic device, and storage medium

Publications (1)

Publication Number Publication Date
CN112558949A true CN112558949A (en) 2021-03-26

Family

ID=75032020

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011516595.8A Pending CN112558949A (en) 2020-12-21 2020-12-21 Program construction method, program construction device, electronic device, and storage medium

Country Status (1)

Country Link
CN (1) CN112558949A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022252068A1 (en) * 2021-05-31 2022-12-08 西门子股份公司 Application program construction method, execution method, computing device, and storage medium
CN115657571A (en) * 2022-12-26 2023-01-31 广东群宇互动科技有限公司 Intelligent toy production method, system, platform and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001024003A1 (en) * 1999-09-28 2001-04-05 Datalex Usa West, Inc A software component-container framework for dynamic deployment of business logic components in a distributed object environment
CN101216838A (en) * 2008-01-15 2008-07-09 中兴通讯股份有限公司 XML interface configuration file distribute system and method based on WEB marker
CN102360308A (en) * 2011-09-29 2012-02-22 用友软件股份有限公司 Distributed deployment system and method of components
CN106201458A (en) * 2016-06-27 2016-12-07 上海波汇科技股份有限公司 A kind of interface creating method can joined flexibly and system
US20190286089A1 (en) * 2016-11-10 2019-09-19 Phoenix Contact Gmbh & Co. Kg Sequence control of program modules
CN111352618A (en) * 2020-03-30 2020-06-30 北京思特奇信息技术股份有限公司 Application program assembling method and device, electronic equipment and storage medium
CN111488144A (en) * 2020-04-17 2020-08-04 腾讯音乐娱乐科技(深圳)有限公司 Data processing method and equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001024003A1 (en) * 1999-09-28 2001-04-05 Datalex Usa West, Inc A software component-container framework for dynamic deployment of business logic components in a distributed object environment
CN101216838A (en) * 2008-01-15 2008-07-09 中兴通讯股份有限公司 XML interface configuration file distribute system and method based on WEB marker
CN102360308A (en) * 2011-09-29 2012-02-22 用友软件股份有限公司 Distributed deployment system and method of components
CN106201458A (en) * 2016-06-27 2016-12-07 上海波汇科技股份有限公司 A kind of interface creating method can joined flexibly and system
US20190286089A1 (en) * 2016-11-10 2019-09-19 Phoenix Contact Gmbh & Co. Kg Sequence control of program modules
CN111352618A (en) * 2020-03-30 2020-06-30 北京思特奇信息技术股份有限公司 Application program assembling method and device, electronic equipment and storage medium
CN111488144A (en) * 2020-04-17 2020-08-04 腾讯音乐娱乐科技(深圳)有限公司 Data processing method and equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022252068A1 (en) * 2021-05-31 2022-12-08 西门子股份公司 Application program construction method, execution method, computing device, and storage medium
CN115657571A (en) * 2022-12-26 2023-01-31 广东群宇互动科技有限公司 Intelligent toy production method, system, platform and storage medium

Similar Documents

Publication Publication Date Title
US8392877B1 (en) System and method of application development using replaceable self-contained components (RSCCS)
US8234619B2 (en) System, method, and software for facilitating business object development testing
CA2852760C (en) Migration assessment for cloud computing platforms
US7827527B1 (en) System and method of application development
US8365149B2 (en) Debugger for a declarative event-driven programming model
CN107102848B (en) Specifying user interface elements
US7797370B2 (en) Systems and methods for enhanced message support of common model interface
US8832658B2 (en) Verification framework for business objects
US20100058113A1 (en) Multi-layer context parsing and incident model construction for software support
US20100153150A1 (en) Software for business adaptation catalog modeling
US20100153432A1 (en) Object based modeling for software application query generation
US20130283188A1 (en) Template based management of services
AU2006299514A1 (en) Template based management of services
US20100153149A1 (en) Software for model-based configuration constraint generation
US9052845B2 (en) Unified interface for meta model checking, modifying, and reporting
US8397216B2 (en) Compiler for a declarative event-driven programming model
US9378472B2 (en) Systems and methods for enabling and configuring tracking of user interactions on computer applications
CN112558949A (en) Program construction method, program construction device, electronic device, and storage medium
US7937711B2 (en) Method and apparatus for providing a consolidated namespace to client applications in multi-tenant common information model (CIM) environments
CN113641338B (en) Method and device for dynamically generating view component
US8438542B2 (en) Generating a management pack at program build time
Corradini et al. FloWare: a model-driven approach fostering reuse and customisation in IoT applications modelling and development
US20130127863A1 (en) Determining an optimal sequence of status transitions for business objects
Troya et al. Specification and simulation of queuing network models using domain-specific languages
US20120084683A1 (en) Seamless Integration of Additional Functionality into Enterprise Software without Customization or Apparent Alteration of Same

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20210423

Address after: No.1, 3rd floor, R & D building, Sany industrial city, No.1, Sany Road, Changsha Economic and Technological Development Zone, Changsha City, Hunan Province

Applicant after: CHANGSHA ROOTCLOUD TECHNOLOGY Co.,Ltd.

Applicant after: Shugen Internet Co.,Ltd.

Address before: No.1, 3rd floor, R & D building, Sany industrial city, No.1, Sany Road, Changsha Economic and Technological Development Zone, Changsha City, Hunan Province

Applicant before: CHANGSHA ROOTCLOUD TECHNOLOGY Co.,Ltd.