Application reuse development method and related equipment

By building the application configuration information and establishing inheritance relationships, the problem of high application reuse development costs in the existing technology is solved, flexible application reuse and iterative development are realized, and development and change costs are reduced.

CN120406933APending Publication Date: 2025-08-01BEIJING WELLINTECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510475947.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-16
Publication Date
2025-08-01

AI Technical Summary

Technical Problem

The existing application reuse solution is costly to develop and expand and change, and it is impossible to flexibly realize the reuse and iterative development of applications.

Method used

By building the application configuration information and establishing public inheritance and private inheritance relationships, the configuration information of the dependent application is configured into the target application to achieve application derivation and functional expansion.

Benefits of technology

It realizes flexible reuse and iterative development of applications, reducing development and change costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120406933A_ABST
    Figure CN120406933A_ABST
Patent Text Reader

Abstract

The invention relates to an application reuse development method and related equipment, relates to the technical field of software, is used for flexibly realizing reuse and iterative development of applications, is easy to perform function extension and change, and greatly reduces development cost and change cost. The method comprises the following steps: constructing configuration information of a first application; the configuration information of the first application is configured to obtain target configuration information, and the target configuration information comprises the configuration information of the first application and the configuration information of a second application; wherein the first application can use the function of the second application.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of software technology, and in particular, to a development method for application reuse and related devices. Background Art

[0002] Currently, the reuse of applications (Apps) is achieved through the dependency relationships between Apps. Such dependency relationships form a dependency relationship tree. If one wants to externally provide the functions or accessor attributes of the Apps it depends on, one way is to forward the Apps it depends on; another way is to flatten the Apps it depends on as a dependency package.

[0003] With this way of App reuse achieved through dependency relationships, since this dependency relationship isolates the dependent objects, if one wants to develop an App on top of it, one cannot directly access the Apps it depends on, resulting in limited reuse. Moreover, if the Apps being depended on change, the corresponding upgrades and changes to the Apps at the upper layer that depend on it will become difficult and cumbersome. Secondly, with the reuse method of flattening the Apps it depends on as a dependency package, iterative reuse development cannot be carried out.

[0004] In summary, the existing App reuse solutions not only have high development costs, but also high expansion and change costs, and cannot flexibly achieve application reuse and iterative development, which is not conducive to function expansion and change. Summary of the Invention

[0005] This application provides a development method for application reuse and related devices, which can flexibly achieve application reuse and iterative development, is easy to perform function expansion and change, and greatly reduces the development cost and change cost.

[0006] The technical solution of this application is as follows:

[0007] In a first aspect, this application provides a development method for application reuse, constructs the configuration information of a first application; configures the configuration information of the first application to obtain target configuration information, where the target configuration information includes: the configuration information of the first application, the configuration information of a second application; wherein, the first application can use the functions of the second application.

[0008] In an optional implementation, the target configuration information further includes: the configuration information of a third application; wherein, the first application can use the functions of the second application and the third application.

[0009] In an optional implementation, configuring the configuration information of the first application includes:

[0010] Adding the configuration information of the second application and the configuration information of the third application to the configuration information of the first application.

[0011] In an alternative embodiment, the configuration information of the first application includes first configuration information and second configuration information; the method further includes:

[0012] Establish a public inheritance relationship between the first configuration information and the configuration information of the second application, where the first configuration information is a sub-configuration information of the configuration information of the second application;

[0013] Establish a private inheritance relationship between the second configuration information and the configuration information of the third application, where the second configuration information is a sub-configuration information of the configuration information of the third application;

[0014] Wherein, the derived application of the first application can use the functions of the second application, but cannot use the functions of the third application.

[0015] In an alternative embodiment, the configuration information of the second application includes first public configuration information, the first public configuration information includes a first function, and the first function is set to allow virtualization operations; the method further includes:

[0016] Rewrite the first function that the first application publicly inherits from the second application to obtain a first rewritten function, and set the first rewritten function to not allow virtualization operations;

[0017] Wherein, when the first application runs, the first application can run the first rewritten function;

[0018] The derived application of the first application can run the first rewritten function, but cannot rewrite the first rewritten function.

[0019] In an alternative embodiment, the configuration information of the third application includes second public configuration information, the second public configuration information includes a second function and a third function, the second function is set to allow function virtualization operations, and the third function is set to not allow function virtualization operations; the method further includes:

[0020] Do not rewrite the second function that the first application privately inherits from the third application;

[0021] Wherein, when the first application runs, the first application can run the second function and the third function that are privately inherited from the third application;

[0022] The derived application of the first application cannot run the second function and the third function that are privately inherited from the third application.

[0023] In an alternative embodiment, the first public configuration information and the second public configuration information further include at least one of the following: members of the application, description of the application, identifier of the application, attributes of the application, and parent configuration information of the application.

[0024] In an alternative embodiment, the members of the application include at least one of the following: name of the application, type of the application, configuration parameter values of the application, and access control mode of the application.

[0025] In an alternative embodiment, the target configuration information further includes at least one of the following:

[0026] There is a public inheritance relationship between the first configuration information and the configuration information of the second application, and the first configuration information is a sub-configuration information of the configuration information of the second application;

[0027] There is a private inheritance relationship between the second configuration information and the configuration information of the third application, and the second configuration information is a sub-configuration information of the configuration information of the third application.

[0028] In a second aspect, the present application provides a development device for application reuse, and the device includes:

[0029] A construction unit, configured to construct the configuration information of the first application;

[0030] A configuration unit, configured to configure the configuration information of the first application to obtain target configuration information, where the target configuration information includes: the configuration information of the first application and the configuration information of the second application;

[0031] Wherein, the first application can use the functions of the second application.

[0032] In an alternative embodiment, the target configuration information further includes: the configuration information of the third application; wherein, the first application can use the functions of the second application and the third application.

[0033] In an alternative embodiment, when configuring the configuration information of the first application, the configuration unit is specifically configured to:

[0034] Add the configuration information of the second application and the configuration information of the third application to the configuration information of the first application.

[0035] In an alternative embodiment, the configuration information of the first application includes first configuration information and second configuration information; the configuration unit is further configured to:

[0036] Establish a public inheritance relationship between the first configuration information and the configuration information of the second application, and the first configuration information is a sub-configuration information of the configuration information of the second application;

[0037] Establish a private inheritance relationship between the second configuration information and the configuration information of the third application, where the second configuration information is a sub-configuration information of the configuration information of the third application;

[0038] Among them, the derived application of the first application can use the functions of the second application, but cannot use the functions of the third application.

[0039] In an optional implementation manner, the configuration information of the second application includes first public configuration information, and the first public configuration information includes a first function, and the first function is set to allow virtualization operations; the configuration unit is further configured to:

[0040] Rewrite the first function that the first application publicly inherits from the second application to obtain a first rewritten function, and set the first rewritten function to not allow virtualization operations;

[0041] Among them, when the first application runs, the first application can run the first rewritten function;

[0042] The derived application of the first application can run the first rewritten function, but cannot rewrite the first rewritten function.

[0043] In an optional implementation manner, the configuration information of the third application includes second public configuration information, and the second public configuration information includes a second function and a third function, the second function is set to allow function virtualization operations, and the third function is set to not allow function virtualization operations; the configuration unit is further configured to:

[0044] Do not rewrite the second function that the first application privately inherits from the third application;

[0045] Among them, when the first application runs, the first application can run the second function and the third function that are privately inherited from the third application;

[0046] The derived application of the first application cannot run the second function and the third function that are privately inherited from the third application.

[0047] In an optional implementation manner, the public configuration information includes at least one of the following: members of the application, description of the application, identifier of the application, attributes of the application, identifier of the parent configuration information of the application;

[0048] The configuration information of the application includes private configuration information, and the private configuration information includes at least one of the following:

[0049] Members of the application, description of the application, identifier of the application, attributes of the application, functions of the application, identifier of the parent configuration information of the application.

[0050] In an alternative embodiment, the members of the application include at least one of the following: the name of the application, the type of the application, the configuration parameter values of the application, and the access control of the application.

[0051] In an alternative embodiment, the target configuration information further includes at least one of the following:

[0052] There is a public inheritance relationship between the first configuration information and the configuration information of the second application, and the first configuration information is a sub-configuration information of the configuration information of the second application;

[0053] There is a private inheritance relationship between the second configuration information and the configuration information of the third application, and the second configuration information is a sub-configuration information of the configuration information of the third application.

[0054] In a third aspect, the present application provides a development device for application reuse, including: a processor, a memory, and a computer program; wherein, the computer program is stored on the memory, and when the computer program is executed by the processor, the device implements the development method for application reuse according to any one of the above first aspects.

[0055] In a fourth aspect, the present application provides a computer-readable storage medium, which includes: a computer program. When the computer program is executed by an electronic device, the electronic device implements the development method for application reuse according to any one of the first aspects.

[0056] In a fifth aspect, the present application provides a computer program product, including computer-readable code, or a non-volatile computer-readable storage medium carrying the computer-readable code. When the computer-readable code runs in an electronic device, the processor in the electronic device implements the development method for application reuse according to any one of the first aspects.

[0057] The technical solution provided by the present application at least brings the following beneficial effects: By configuring the configuration information of the second application into the first application, the first application can be directly derived from the second application. This application development method can flexibly achieve the reuse and iterative development of applications, is easy to expand and change functions, and greatly reduces the development cost and change cost of applications.

[0058] In the above solution, the technical problems that can be solved and the technical effects achieved by the development device, device, computer storage medium, or computer program product for application reuse can be referred to the technical problems solved and technical effects in the above first aspect, and will not be elaborated here.

[0059] It should be understood that the above general description and the following detailed description are merely exemplary and explanatory, and do not limit the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0060] The accompanying drawings herein are incorporated into and constitute a part of this specification, showing embodiments consistent with the present application, and are used together with the specification to explain the principles of the present application, and do not constitute an undue limitation to the present application.

[0061] Figure 1 Schematic structural diagram of the App provided by the embodiment of the present application;

[0062] Figure 2 Schematic flow diagram of a development method for application reuse provided by the embodiment of the present application;

[0063] Figure 3 Schematic diagram of a development example of application reuse provided by the embodiment of the present application;

[0064] Figure 4 Schematic diagram of the operation of the derived application provided by the embodiment of the present application;

[0065] Figure 5 Schematic structural diagram of a development device for application reuse provided by the embodiment of the present application;

[0066] Figure 6 Schematic hardware structure diagram of a development device for application reuse provided by the embodiment of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0067] In order to enable those of ordinary skill in the art to better understand the technical solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings.

[0068] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above accompanying drawings are used to distinguish similar objects, and do not necessarily describe a specific order or sequence. It should be understood that such data used may be interchanged under appropriate circumstances so that the embodiments of the present application described herein can be implemented in an order different from those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0069] It should also be understood that the term "comprising" indicates the presence of the described features, wholes, steps, operations, elements, and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, and / or components.

[0070] "And / or" is used to describe the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent three situations: A exists alone, A and B exist simultaneously, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship.

[0071] Currently, the reuse of an application (App) is achieved through a dependency relationship. This dependency cuts off the object on which the App depends. If one wants to develop another App on top of this App, it cannot directly access the App it depends on, resulting in limited reuse. Moreover, if the App it depends on changes, it is difficult to upgrade and change the App on its upper layer.

[0072] However, the reuse of Apps in a flat manner will lead to difficulties in the reuse development of iterative applications, and it will be difficult to change and expand the applications.

[0073] That is to say, the current development scheme for App reuse cannot efficiently perform iterative development. Therefore, how to flexibly achieve the reuse and iterative development of applications, improve the development efficiency of applications, and reduce the development cost has become a technical problem to be solved urgently.

[0074] To solve the above problems, the embodiments of the present application provide a development method for application reuse. By configuring the configuration information of the dependent application into the target application, the target application can be directly derived from the dependent application. This application development method can flexibly achieve the reuse and iterative development of applications, is easy to expand and change functions, and greatly reduces the development cost and change cost of applications. The structure of the App in the embodiments of the present application will be introduced below.

[0075] Exemplarily, as Figure 1 shown, in the embodiments of the present application, the App is the object of development and operation and maintenance, and the App attributes may include: name, description, identity identifier, that is, the globally unique identifier (Guid), member attributes, functions, parent App attributes, and so on.

[0076] Among them, the member attributes can be understood as user-defined attributes. The member attributes include: name, type, value, access control mode, and so on

[0077] The parent App attributes include: the identifier of the parent App and the access control mode. The identifier of the parent App can be the GUID of the parent App, indicating which App this App is derived from.

[0078] The functions include: return value type, function name, logical segments of the parameter list, whether the access control is virtualized, and so on.

[0079] The access control mode is a configuration item that controls the control method and the visible scope of members, and there are two categories: private inheritance and public inheritance.

[0080] When setting the access control mode of derivation during application derivation, the visibility of the members and functions of the parent App in the derived application can be controlled.

[0081] Exemplarily, taking App as a, b, and c respectively in private inheritance as an example, if b privately inherits a, then b can access the non-private members and functions of a, but c cannot access the members and functions of the parent class a. b can hide the members and functions of a in this way, and the derived class of b cannot access the members and functions of a. For public inheritance, it will not affect the visibility of the members and functions of the parent application.

[0082] When configuring the configuration information of the application, configuring on the members and functions of the App can control whether the derived application can access the members and functions of the parent application. If the private inheritance mode is set, the derived application cannot access the members and functions of the parent application. If the public inheritance mode is set, the derived application can access the members and functions of the parent application.

[0083] Virtualization indicates that this function can be overridden by the derived application, and when the function is run by the derived application object, the overridden function is executed.

[0084] After introducing the structure of the App in the embodiments of the present application, the development method of application reuse provided in the embodiments of the present application will be introduced in detail below in combination with the above-mentioned structure of the App.

[0085] Figure 2 It is a schematic flowchart of a development method for application reuse provided in the embodiments of the present application. As Figure 2 shown, the development method for application reuse may include: S201 - S202.

[0086] S201. Construct the configuration information of the first application.

[0087] Exemplarily, referring to the above Figure 1 App structure, construct the configuration information of the first application.

[0088] S202. Configure the configuration information of the first application to obtain target configuration information, where the target configuration information includes: the configuration information of the first application and the configuration information of the second application; wherein, the first application can use the functions of the second application.

[0089] Optionally, in S202, configuring the configuration information of the first application includes: adding the configuration information of the second application to the configuration information of the first application.

[0090] In this embodiment, by configuring the configuration information of the second application into the configuration information of the first application, the derivation of the first application is realized, and the second application is the parent application of the first application.

[0091] In a possible implementation manner, the target configuration information further includes: the configuration information of a third application; wherein, the first application can use the functions of the second application and the third application.

[0092] In this embodiment, by configuring the configuration information of the second application and the third application into the configuration information of the first application, the derivation of the first application is realized. Both the second application and the third application are the parent applications of the first application. At this time, the first application can use the functions of the second application and the third application.

[0093] Optionally, configuring the configuration information of the first application in S202 includes: adding the configuration information of the second application and the configuration information of the third application to the configuration information of the first application.

[0094] Wherein, the configuration information of the first application includes first configuration information and second configuration information; the above method further includes:

[0095] Establish an open inheritance relationship between the first configuration information and the configuration information of the second application. The first configuration information is a sub-configuration information of the configuration information of the second application; establish a private inheritance relationship between the second configuration information and the configuration information of the third application. The second configuration information is a sub-configuration information of the configuration information of the third application; wherein, the derived application of the first application can use the function of the second application, but cannot use the function of the third application.

[0096] In a possible implementation manner, the configuration information of the second application includes first public configuration information. The first public configuration information includes a first function, and the first function is set to allow virtualization operations; the method further includes:

[0097] Override the first function that the first application publicly inherits from the second application to obtain a first overridden function, and set the first overridden function to not allow virtualization operations; wherein, when the first application runs, the first application can run the first overridden function; the derived application of the first application can run the first overridden function, but cannot override the first overridden function.

[0098] In another possible implementation manner, the configuration information of the third application includes second public configuration information. The second public configuration information includes a second function and a third function. The second function is set to allow function virtualization operations, and the third function is set to not allow function virtualization operations; the method further includes:

[0099] Do not rewrite the second function privately inherited by the first application from the third application; when the first application runs, the first application can run the second function and the third function privately inherited from the third application; the derived application of the first application cannot run the second function and the third function privately inherited from the third application.

[0100] It should be noted that the publicly configured information in this embodiment further includes: members of the application, descriptions of the application, identifiers of the application, attributes of the application, and parent configuration information of the application. The parent configuration information of the application includes the identifier of the parent application and the access control mode of the parent application.

[0101] Specifically, the members of the application include: the name of the application, the type of the application, the configuration parameter values of the application, the access control mode of the application, and so on.

[0102] Optionally, there is a publicly inherited relationship between the first configuration information and the configuration information of the second application, and the first configuration information is a sub-configuration information of the configuration information of the second application.

[0103] Optionally, there is a privately inherited relationship between the second configuration information and the configuration information of the third application, and the second configuration information is a sub-configuration information of the configuration information of the third application.

[0104] Exemplarily, in combination with Figure 3 the above embodiments are described in detail.

[0105] Refer to Figure 3 As shown, taking the first application as App b, the second application as App a, and the third application as App c as an example to describe the above application reuse development method in detail.

[0106] Specifically, the publicly configured information of App b includes: name, description, Guid, members, functions, parent application's configuration information, etc. The parent application's configuration information includes the identifier of the parent application and the access control mode. Among them, the parent applications of App b are App a and App d respectively. The access control mode of App a is public inheritance, and the access control mode of App d is private inheritance.

[0107] The members of App b include m3 and m4. Among them, m3 is visible for public access, and m4 is invisible for private access.

[0108] The functions of App b include f1, f v , f3. Among them, the access control mode of f1 is private inheritance and does not allow virtualization operations. f v 's access control mode is public inheritance and does not allow virtualization operations. The access control mode of f3 is public inheritance and does not allow virtualization operations.

[0109] The members of App a include m1 and m2, where m1 is private access and invisible, and m2 is public access and visible. The functions of App a include f v, f v In the access control mode of this App, it is public inheritance and allows virtualization operations.

[0110] The members of App d include m5, and m5 is public access and visible. The functions of App d include f v-2 and f 5, f v-2 In the access control mode of this App, it is public inheritance and allows virtualization operations. In the access control mode of f5 in this App, it is public inheritance and does not allow virtualization operations.

[0111] Since the member m4 of App b is private access and invisible, and the access control mode of the parent application App a is public inheritance, App b and its derived class applications can use the functions of App a, but the member m1 of App a is private access and invisible; the access control mode of the parent application App d is private inheritance, and the derived class applications of App b cannot use the functions of App d. From the perspective of App b or its derived class applications, App b only includes the members m2 and m3.

[0112] Since the function f1 of App b is private inheritance, and the access control mode of the parent application App a is public inheritance, App b and its derived class applications can use the functions of App a, and the function f of App a v In the access control mode of this App, it is public inheritance and allows virtualization operations; the access control mode of the parent application App d is private inheritance, and the derived class applications of App b cannot use the functions of App d. From the perspective of App b or its derived class applications, App b includes the functions fv and f3.

[0113] Specifically, the access control mode of the parent application App a is public inheritance, and App b and its derived class applications can use the functions of App a. Since the access control attribute of the member m1 of App a is private, App b can access the member m2 and the function fv of App a, but cannot access the member m1; the access control mode of the parent application App d is private inheritance, App b can access the member m5 and the functions f5 and fv-2 of App d, but the derived class applications of App b cannot use the functions of App d and cannot access the members or functions of App d.

[0114] Further, from Figure 3It can be seen that App b overrides the virtualized function fv in App a and sets the virtualization switch to no, that is, virtualization is not allowed. In this way, the derived applications of App b cannot override the function fv anymore. App b does not override the function fv-2 that runs virtualization in App d.

[0115] Through the development method of application reuse in the above embodiments, derived applications can quickly iterate and develop new Apps based on existing ecosystems or existing Apps through inheritance, without repeating the development process, thus reducing the development cost.

[0116] Figure 4 Yes Figure 3 is a schematic diagram of the operation mechanism of the virtualized function in. From Figure 4 It can be seen that the members included when App b runs are: member m1, member m2, member m3, member m4, member m5. The functions during operation include: function f1, function f5, function f3, function fv, function fv-2. Among them, function fv is the function implementation after App b overrides, and function fv-2 is the function implementation of App d.

[0117] It should be noted that when the derived App in the embodiment of the present application is loaded, according to the derivation relationship of the App, a runtime structure and function table corresponding to the virtual box as shown in Figure 4 will be formed. During compilation, it will be compiled based on the structure of the virtual box, and when a function is called, the function to be finally implemented will be called according to the function table.

[0118] In summary, the development method of application reuse provided in the embodiment of the present application can quickly perform iterative development on existing Apps through derivation, without having to reinvent the wheel. By using the re-virtualized functions during the application derivation process, existing Apps can be flexibly extended and changed, increasing the flexibility and diversity of application development.

[0119] The embodiment of the present application also provides a development device for application reuse. The development device for application reuse can be a computer device, or the CPU in a computer device, or a processing module for application reuse development in a computer device, or a client for application reuse development in a computer device.

[0120] Embodiments of the present application can divide the development device for application reuse into functional modules or functional units according to the above method examples. For example, each functional module or functional unit can be corresponding to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware, or in the form of a software functional module or functional unit. Among them, the division of modules or units in the embodiments of the present application is illustrative, only a logical function division, and there can be other division methods in actual implementation. For example, each functional module can be corresponding to each function, or two or more functions can be integrated into one processing module.

[0121] As Figure 5 shown, it is a schematic structural diagram of a development device for application reuse provided by an embodiment of the present application. The development device for application reuse is applied to a client device or a server device. As Figure 5 shown, the development device 500 for application reuse may include:

[0122] A construction unit 501, configured to construct configuration information of a first application;

[0123] A configuration unit 502, configured to configure the configuration information of the first application to obtain target configuration information, where the target configuration information includes: configuration information of the first application and configuration information of a second application;

[0124] Among them, the first application can use the functions of the second application.

[0125] In an optional implementation manner, the target configuration information further includes: configuration information of a third application; among them, the first application can use the functions of the second application and the third application.

[0126] In an optional implementation manner, when configuring the configuration information of the first application, the configuration unit is specifically configured to:

[0127] Add the configuration information of the second application and the configuration information of the third application to the configuration information of the first application.

[0128] In an optional implementation manner, the configuration information of the first application includes first configuration information and second configuration information; the configuration unit 502 is further configured to:

[0129] Establish a public inheritance relationship between the first configuration information and the configuration information of the second application, and the first configuration information is sub-configuration information of the configuration information of the second application;

[0130] Establish a private inheritance relationship between the second configuration information and the configuration information of the third application, where the second configuration information is a sub-configuration information of the configuration information of the third application;

[0131] Among them, the derived application of the first application can use the functions of the second application, but cannot use the functions of the third application.

[0132] In an optional implementation, the configuration information of the second application includes first public configuration information, the first public configuration information includes a first function, and the first function is set to allow virtualization operations; the configuration unit 502 is further configured to:

[0133] Rewrite the first function that the first application publicly inherits from the second application to obtain a first rewritten function, and set the first rewritten function to not allow virtualization operations;

[0134] Among them, when the first application runs, the first application can run the first rewritten function;

[0135] The derived application of the first application can run the first rewritten function, but cannot rewrite the first rewritten function.

[0136] In an optional implementation, the configuration information of the third application includes second public configuration information, the second public configuration information includes a second function and a third function, the second function is set to allow function virtualization operations, and the third function is set to not allow function virtualization operations; the configuration unit 502 is further configured to:

[0137] Do not rewrite the second function that the first application privately inherits from the third application;

[0138] Among them, when the first application runs, the first application can run the second function and the third function that are privately inherited from the third application;

[0139] The derived application of the first application cannot run the second function and the third function that are privately inherited from the third application. [[ID=2,8]]

[0140] In an optional implementation, the public configuration information includes at least one of the following: members of the application, description of the application, identifier of the application, attributes of the application, identifier of the parent configuration information of the application;

[0141] The configuration information of the application includes private configuration information, and the private configuration information includes at least one of the following:

[0142] Members of the application, description of the application, identifier of the application, attributes of the application, functions of the application, identifier of the parent configuration information of the application.

[0143] In an alternative embodiment, the members of the application include at least one of the following: the name of the application, the type of the application, the configuration parameter values of the application, and the access control of the application.

[0144] In an alternative embodiment, the target configuration information further includes at least one of the following:

[0145] There is a public inheritance relationship between the first configuration information and the configuration information of the second application, and the first configuration information is a sub-configuration information of the configuration information of the second application;

[0146] There is a private inheritance relationship between the second configuration information and the configuration information of the third application, and the second configuration information is a sub-configuration information of the configuration information of the third application.

[0147] The embodiment of the present application further provides a development device for application reuse, and the development device for application reuse can be a server device or a client device.

[0148] Figure 6 FIG. is a schematic hardware structure diagram of a development device for application reuse shown according to an exemplary embodiment. The development of the application reuse may include: a communication interface 601 and a processor 602. The processor 602 is used to control and manage the actions of the device. For example, the processor 602 executes each step in the method flow shown in the above method embodiment, and / or is used to execute other processes of the technology described herein. The communication interface 601 is used to support the communication between the development device for application reuse and other network entities. The development device for application reuse may further include a memory 603 and a bus 604, and the memory 603 is used to store program codes and data.

[0149] Wherein, the above-mentioned processor 602 can implement or execute various exemplary logic blocks, units and circuits described in combination with the disclosure of the present invention. The processor 602 may be a central processing unit, a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It can implement or execute various exemplary logic blocks, units and circuits described in combination with the disclosure of the present invention. The processor 602 may also be a combination for implementing computing functions, such as a combination including one or more microprocessors, a combination of a DSP and a microprocessor, etc.

[0150] The memory 603 may include volatile memory, such as random access memory; the memory 603 may also include non-volatile memory, such as read-only memory, flash memory, hard disk or solid-state drive; the memory 603 may further include a combination of the above-mentioned types of memory.

[0151] The bus 604 can be an Extended Industry Standard Architecture (EISA) bus or the like. The bus 604 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 6 it is only represented by a thick line in Figure 6 , but it does not mean that there is only one bus or one type of bus.

[0152] In an exemplary embodiment, the embodiment of the present application further provides a computer-readable storage medium, on which computer program instructions are stored; when the computer program instructions are executed by an electronic device, the electronic device implements the method of the above embodiment.

[0153] Optionally, the above computer-readable storage medium can be a non-transitory computer-readable storage medium. For example, the non-transitory computer-readable storage medium can be a read-only memory (ROM), a random access memory (RAM), a compact disc read-only memory (CD-ROM), magnetic tape, a floppy disk, and an optical data electronic device, etc.

[0154] In an exemplary embodiment, the embodiment of the present application further provides a computer program product, including computer-readable code, or a non-volatile computer-readable storage medium carrying the computer-readable code. When the computer-readable code runs in an electronic device, the processor in the electronic device implements the method for collaborative management of multiple copies as described above.

[0155] Those skilled in the art will readily think of other implementation schemes of the present application after considering the specification and practicing the invention herein. The present application is intended to cover any variations, uses, or adaptive changes of the present application, which follow the general principles of the present application and include the common general knowledge or conventional technical means in the technical field not claimed in the present application. The specification and the embodiments are only regarded as exemplary, and the true scope and spirit of the present application are pointed out by the following claims.

[0156] It should be understood that the present application is not limited to the exact structure already described and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present application is only limited by the appended claims.

Claims

1. A development method for application reuse, characterized in that, The method includes: Constructing the configuration information of the first application; Configuring the configuration information of the first application to obtain target configuration information, where the target configuration information includes: the configuration information of the first application and the configuration information of the second application; Wherein, the first application can use the functions of the second application.

2. The method according to claim 1, wherein The target configuration information further includes: the configuration information of the third application; wherein, the first application can use the functions of the second application and the third application.

3. The method according to claim 2, characterized in that, Configuring the configuration information of the first application includes: Adding the configuration information of the second application and the configuration information of the third application to the configuration information of the first application.

4. The method according to claim 3, characterized in that The configuration information of the first application includes first configuration information and second configuration information; the method further includes: Establishing a public inheritance relationship between the first configuration information and the configuration information of the second application, where the first configuration information is a sub-configuration information of the configuration information of the second application; Establishing a private inheritance relationship between the second configuration information and the configuration information of the third application, where the second configuration information is a sub-configuration information of the configuration information of the third application; Wherein, the derived application of the first application can use the functions of the second application, but cannot use the functions of the third application.

5. The method according to claim 4, wherein The configuration information of the second application includes first public configuration information, and the first public configuration information includes a first function, and the first function is set to allow virtualization operations; the method further includes: Overriding the first function publicly inherited by the first application from the second application to obtain a first overridden function, and setting the first overridden function to not allow virtualization operations; Wherein, when the first application runs, the first application can run the first overridden function; The derived application of the first application can run the first overridden function, but cannot override the first overridden function.

6. The method according to claim 4, characterized in that The configuration information of the third application includes second public configuration information, and the second public configuration information includes a second function and a third function, the second function is set to allow function virtualization operations, and the third function is set to not allow function virtualization operations; the method further includes: Not overriding the second function privately inherited by the first application from the third application; Wherein, when the first application runs, the first application can run the second function and the third function privately inherited from the third application; The derived application of the first application cannot run the second function and the third function privately inherited from the third application.

7. The method according to claim 5 or 6, characterized in that, The first public configuration information and the second public configuration information further include at least one of the following: members of the application, descriptions of the application, identifiers of the application, attributes of the application, and parent configuration information of the application.

8. The method according to claim 7, characterized in that, Members of the application include at least one of the following: the name of the application, the type of the application, the configuration parameter values of the application, and the access control mode of the application.

9. The method according to claim 4, wherein The target configuration information further includes at least one of the following: There is a public inheritance relationship between the first configuration information and the configuration information of the second application, and the first configuration information is a sub-configuration information of the configuration information of the second application; There is a private inheritance relationship between the second configuration information and the configuration information of the third application, and the second configuration information is a sub-configuration information of the configuration information of the third application.

10. A development device for application reuse, characterized in that The device includes: a construction unit, configured to construct the configuration information of the first application; a configuration unit, configured to configure the configuration information of the first application to obtain target configuration information, where the target configuration information includes: the configuration information of the first application and the configuration information of the second application; wherein, the first application can use the functions of the second application.

11. A development device for application reuse, characterized in that, It includes: a processor, a memory, and a computer program; wherein, the computer program is stored on the memory, and when the computer program is executed by the processor, the device implements the method according to any one of claims 1-9.