Application management method, apparatus, device, and storage medium

By reading the declaration file and using mapping relationships to manage the loading, installation, and uninstallation processes of applications, the problem of high coupling in application management is solved, achieving efficient application management and reducing maintenance costs.

CN116088965BActive Publication Date: 2025-11-25SHENZHEN FULIN TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310182835.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-17
Publication Date
2025-11-25
Estimated Expiration
2043-02-17

AI Technical Summary

Technical Problem

In existing technologies, the management processes of application loading and installation are difficult to ensure efficiency, resulting in high application maintenance costs, mainly due to the strong coupling between different application capabilities.

Method used

By reading a pre-stored declaration file, the application is loaded and installed according to the declaration file. The application implementation methods and application capabilities specified in the declaration file are mapped to achieve efficient application management, including loading, installation, uninstallation and iteration processes.

Benefits of technology

It reduces the coupling between different application capabilities and between the system and business logic, improves the efficiency of application loading, installation and other management processes, reduces application maintenance costs, and enhances user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116088965B_ABST
    Figure CN116088965B_ABST
Patent Text Reader

Abstract

The application relates to the field of computer software application management, and discloses an application program management method, device, equipment and storage medium. The method comprises the following steps: reading a pre-stored declaration file, loading a corresponding application program according to the declaration file; wherein the declaration file comprises configuration declaration of an application implementation method of the corresponding application program and all supported application capabilities; when an installation instruction of an application program carrying an application identification number is received, a declaration file having a mapping relationship with the application identification number is acquired, and installation of the application program corresponding to the application identification number is realized according to the application implementation method defined in the declaration file; wherein the installed application program has all the supported application capabilities. The application can improve the efficiency of the management process such as loading and installation of the application program, and accordingly reduce the application maintenance cost.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of computer software application management, and in particular to an application program management method and device, equipment and a storage medium. BACKGROUND

[0002] With the progress of technology, mobile terminals, mobile Internet devices and other devices are increasingly penetrating into people's lives and becoming indispensable communication, entertainment and work tools in people's daily work and life. Among them, the application program or application software installed in the mobile terminal, mobile Internet device and other computer devices is a computer program for completing one or more specific work, which runs in user mode, can interact with users, has a visual user interface, and can perform data processing in a certain business scenario.

[0003] At present, all application capability features of the application program are implemented as part of the corresponding business system. Since there is strong coupling between different application capabilities of the application program, the management efficiency of the loading, installation and other management processes of the application program is difficult to guarantee, thereby resulting in high subsequent application maintenance costs. SUMMARY

[0004] Therefore, in order to solve the problems of the prior art, the embodiments of the present application provide an application program management method, device, equipment and storage medium.

[0005] In a first aspect, the present application provides an application program management method, comprising:

[0006] reading a pre-stored declaration file, and loading a corresponding application program according to the declaration file; the declaration file includes a configuration declaration of an application implementation method of the corresponding application program and all supported application capabilities;

[0007] when receiving an installation instruction of an application program carrying an application identifier, obtaining a declaration file having a mapping relationship with the application identifier, and installing the application program corresponding to the application identifier according to the application implementation method specified in the declaration file; wherein the installed application program has all supported application capabilities.

[0008] In an optional embodiment, the loading process of a single application program comprises:

[0009] when receiving a loading instruction of an application program carrying an application identifier, comparing the application identifier with a pre-defined identifier to determine the application implementation method of the application program corresponding to the application identifier and the type of application capability declared in the corresponding declaration file;

[0010] The first mapping relationship between the application identification number and the application implementation method is constructed, and the second mapping relationship between the application identification number and the application capability is constructed, thereby realizing registration of the corresponding declaration file and loading of the corresponding application program.

[0011] In an optional embodiment, the comparison of the application identification number with the pre-defined identification number is performed to determine the application implementation method of the application program corresponding to the application identification number, and the method comprises:

[0012] If the comparison of the application identification number with the pre-defined identification number is consistent, it is determined that the application program corresponding to the application identification number adopts the application implementation method of the built-in application.

[0013] If the comparison of the application identification number with the pre-defined identification number is inconsistent, it is determined that the application program corresponding to the application identification number adopts the application implementation method of the general application.

[0014] In an optional embodiment, the installation of the application program corresponding to the application identification number is realized according to the application implementation method specified in the declaration file, and the method comprises:

[0015] According to the application identification number, an application installation method specified in the application implementation method corresponding to the first mapping relationship and a capability installation method of the application capability corresponding to the second mapping relationship are acquired from the declaration file, wherein the first mapping relationship is a mapping relationship between the application identification number and the application implementation method, and the second mapping relationship is a mapping relationship between the application identification number and the application capability.

[0016] The application installation method and the capability installation method are respectively called, thereby realizing installation of the corresponding application program.

[0017] In an optional embodiment, the method further comprises:

[0018] After the installation of the application program is completed, if an uninstallation instruction of the application program carrying the application identification number is received, an uninstallation of the application program corresponding to the application identification number is realized according to an application uninstallation method specified in the declaration file.

[0019] In an optional embodiment, the uninstallation of the application program corresponding to the application identification number is realized according to the application uninstallation method specified in the declaration file, and the method comprises:

[0020] According to the application identification number and the declaration file, an application uninstallation method specified in the application implementation method corresponding to the first mapping relationship and a capability uninstallation method of the application capability corresponding to the second mapping relationship are acquired.

[0021] The application uninstalling method and the capability uninstalling method are called respectively, and then the uninstalling of the corresponding application program is realized.

[0022] In an optional embodiment, the method further comprises:

[0023] If an iteration instruction of the target application program is received, the required iterated application capability contained in the iteration instruction and a declaration file containing the configuration declaration of the application capability are acquired respectively;

[0024] According to the declaration file and the required iterated application capability, the loading and the installation update of the target application program are realized.

[0025] In a second aspect, the application provides an application program management device, comprising:

[0026] A loading module is configured to read a pre-stored declaration file, and realize the loading of an application program according to the declaration file; the declaration file comprises a configuration declaration of all supported application capabilities and an application implementation method of a corresponding application program.

[0027] An installation module is configured to acquire a declaration file having a mapping relationship with an application identification number when an installation instruction of an application program carrying the application identification number is received, and realize the installation of an application program corresponding to the application identification number according to an application implementation method specified in the declaration file; the installed application program has all supported application capabilities.

[0028] In a third aspect, the application provides a computer device, comprising a memory and at least one processor; the memory stores a computer program; and the processor is configured to execute the computer program to implement the application program management method.

[0029] In a fourth aspect, the application provides a computer storage medium, which stores a computer program; when the computer program is executed, the application program management method is implemented.

[0030] The embodiments of the application have the following beneficial effects:

[0031] The embodiment of the present application provides an application program management method, which comprises reading a pre-stored declaration file, loading a corresponding application program according to the declaration file; when receiving an installation instruction of an application program carrying an application identification number, obtaining a declaration file having a mapping relationship with the application identification number, and implementing installation of an application program corresponding to the application identification number according to an application implementation method defined in the declaration file, wherein the installed application program has all supported application capabilities. The embodiment of the present application manages the life cycle and capability implementation of the application program, reduces the coupling degree between different application capabilities of the application program and between the system and the business logic, thereby improving the efficiency of the management process such as loading and installation of the application program, and accordingly reducing the application maintenance cost. BRIEF DESCRIPTION OF DRAWINGS

[0032] In order to more clearly illustrate the technical solutions of the present application, the following will briefly introduce the drawings needed to be used in the embodiments. It should be understood that the following drawings only show some embodiments of the present application, and therefore should not be regarded as limiting the scope of protection of the present application. In the various drawings, similar components are denoted by similar reference numerals.

[0033] Figure 1 Fig. 1 shows a first embodiment of the application program management method;

[0034] Figure 2 Fig. 2 shows a second embodiment of the application program management method;

[0035] Figure 3 Fig. 3 shows a third embodiment of the application program management method;

[0036] Figure 4 Fig. 4 shows a fourth embodiment of the application program management method;

[0037] Figure 5 Fig. 5 shows a fifth embodiment of the application program management method;

[0038] Figure 6 Fig. 6 shows a first structure of the application program management device;

[0039] Figure 7 Fig. 7 shows a second structure of the application program management device. DETAILED DESCRIPTION

[0040] The technical solutions of the embodiments of the present application will be described clearly and completely in the following with reference to the drawings of the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, but not all the embodiments.

[0041] The components of the application embodiments generally described and illustrated in the herein drawings can be arranged and designed in a variety of different configurations. Therefore, the following detailed description of the embodiments of the application provided in the herein drawings is not intended to limit the scope of the application, but merely represent selected embodiments of the application. All other embodiments obtained from the general principles of the application, without departing from the spirit and scope of the application, are intended to be within the scope of the application.

[0042] Hereinafter, the terms "include", "have", and their conjugates, used in the various embodiments of the application, merely indicate that the listed features, numbers, steps, operations, elements, components, or combinations thereof are present, and do not exclude the presence or addition of one or more other features, numbers, steps, operations, elements, components, or combinations thereof.

[0043] In addition, the terms "first", "second", "third", and the like are merely used to distinguish descriptions, and cannot be understood as indicating or implying relative importance.

[0044] Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which the various embodiments of the application belong. The terms (such as terms defined in a generally used dictionary) will be interpreted as having the same meaning as the context in the relevant technical field and will not be interpreted as having an idealized or overly formal meaning, unless clearly defined in the various embodiments of the application.

[0045] The application embodiments provide an application management method, which is implemented by relying on an application platform. It is worth noting that the application management method provided by the application embodiments supports a third-party application developer to create an application program according to a declaration file writing specification and a code writing specification specified by an application platform, and to implement or increase the business logic of the application program through an application capability supported by a capability layer in the application platform.

[0046] Each application program (i.e., application) can correspond to an abstract application platform (or business system) to correspondingly implement the management of the application program. As an optional implementation, the application platform is managed in layers in advance, and the application platform includes a core layer and a capability layer. The core layer contains application declaration, life cycle, and other logic for describing the definition and behavior of the application itself. The capability layer contains the way of interaction between the application program and the main system and the application capability thereof, such as menu, permission inspection, and right inspection.

[0047] Further, different types of application life cycles are implemented in the core layer to support various types of applications generated in the business iteration process; the abstraction of the existing underlying functions by the capability layer supports the direct use of the existing underlying application capabilities by the application program, and provides extension capabilities for the future added underlying application capabilities.

[0048] Thus, the functional modules in the large system can be abstracted into pluggable application programs in the form of layering (core layer and capability layer), thereby expanding various functional capabilities in the application platform while maintaining a single entry for the application platform.

[0049] It should be noted that the core layer provides the pluggable characteristics of the application program, the capability layer provides the common application capabilities in the common business scenarios, and the application program realizes the diversified business scenarios by combining the application capabilities provided by the capability layer, thereby improving the efficiency of the functional expansion of the application program and the maintainability of the constructed platform or system.

[0050] The core layer handles the loading, installation, and uninstallation processes of the application program, specifically, executes the public logic at the system level, and calls the loading, installation, and uninstallation methods provided by the application program, thereby realizing the loading, installation, and uninstallation of the application program.

[0051] Please refer to Figure 1 , which will be described in detail below.

[0052] S10, read the pre-stored declaration file, and load the corresponding application program according to the declaration file.

[0053] Exemplarily, when managing each application program, the application program is first loaded through the pre-configured declaration file. Specifically, the pre-stored declaration file in the core layer of the application platform is read, or the declaration file is loaded from outside the application platform; that is, the declaration file is not entirely stored in the core layer of the application platform, and the specific declaration file acquisition method can be set according to actual needs. Then, the application loading method corresponding to each application program in the declaration file is called to realize the loading of the application program.

[0054] The declaration file includes the application implementation method of the corresponding application and the configuration declaration of all application capabilities supported by the capability layer. Further, the declaration file can include basic information description of the application such as the application name, the application capability supported by the application platform used by the application, and the application capability extended by the application in the application platform. The declaration file is self-defined and written by the application developer according to the specified format during the application development stage. In addition, each application has its own application identification number (i.e., application ID), which is defined by the developer of the application and used to indicate the uniqueness of the application.

[0055] Further, the loading of the application includes the loading of the application implementation method of the application and all application capabilities used by the application. The application capability implementation is provided by the application platform for the application, and the application implementation is the application function defined by the application developer.

[0056] It is worth noting that the loading process of the application can be the loading of a single application or the loading of all applications to be managed, and the specific implementation is not limited. The loading is to call the declaration file corresponding to the application to be loaded, and to register the application implementation method and all application capabilities in the corresponding declaration file. For example, in order to improve the management efficiency of the application, all applications are loaded to read all declaration files, and the loading of all applications is realized.

[0057] S20, when receiving the installation instruction of the application carrying the application identification number, obtaining the declaration file having a mapping relationship with the application identification number, and realizing the installation of the application corresponding to the application identification number according to the application implementation method defined in the declaration file.

[0058] After the loading of the application is completed, if the installation of the application is required, the declaration file corresponding to the application can be obtained through the application identification number in the installation instruction of the application after receiving the installation instruction of the application, and then the installation of the corresponding application is performed by calling the application implementation method and the installation method of all application capabilities supported by the capability layer configured in the declaration file, and further, the installed application has all the application capabilities supported by the capability layer. In addition, the installed application can extend the application capability not supported by the application platform in the application platform according to the actual business requirement, that is, the installed application has the application capability declared to be used in the declaration file, and also has the extended application capability in the application platform. It can be understood that when the installed application extends the application capability in the application platform, the configuration declaration of the extended application capability is added in the declaration file.

[0059] As an optional implementation, the installation and uninstallation process of the application program is managed by an application declaration cycle module in the core layer; each application implementation has independent installation / uninstallation logic for performing initialization / destroy work of the application itself; each application capability also has independent installation / uninstallation logic for performing initialization / destroy work related to the capability, which is executed by the application declaration cycle module in the life cycle process of the application program.

[0060] Further, the capability layer is used to abstractly support all application capabilities, so that the application program is combined with each application capability or extended with the application capability, thereby making the developed application program applicable to various business scenarios and business requirements.

[0061] In an embodiment, as shown in FIG. 1, when a single or several specified application programs are loaded, S10 specifically includes the following steps: Figure 2

[0062] S11, when the loading instruction of the application program carrying the application identification number is received, the application identification number is compared with the pre-defined identification number to determine the application implementation method of the application program corresponding to the application identification number and the type of the application capability declared in the corresponding declaration file.

[0063] It should be noted that the application platform provides two types of application implementation methods for applications, namely built-in applications and general applications. The built-in application refers to an application that is gradually evolved from a function in the application platform or business system in the iteration process. The code of this application is still in the application platform or business system and is released simultaneously with the application platform or business system. The general application refers to an application accessed by the application platform or business system from the outside. The code management and application deployment are independent of the application platform or business system.

[0064] In this embodiment, the application platform pre-defines at least one set of application identification numbers, which correspond to the identification numbers of built-in applications. The number of pre-defined application identification numbers and the form of specific identification numbers can be set according to actual needs, which are not limited here.

[0065] Further, when loading the application, the identification number of the loading instruction of the application program is compared with the pre-defined application identification number to determine the type of the application to be loaded, that is, to determine whether the application to be loaded belongs to a built-in application or a general application.

[0066] Further, if the application identification number is consistent with the pre-defined identification number, it is determined that the application program corresponding to the application identification number adopts the application implementation method of the built-in application; if the application identification number is inconsistent with the pre-defined identification number, it is determined that the application program corresponding to the application identification number adopts the application implementation method of the general application. ​

[0067] S12, a first mapping relationship between the application identification number and the application implementation method is constructed, and a second mapping relationship between the application identification number and the application capability is constructed, thereby realizing the registration of the corresponding declaration file and the loading of the corresponding application program.

[0068] After the type of the application to be loaded and the application implementation method thereof are determined, the declaration file corresponding to the application identification number is acquired, and the application implementation method corresponding to the type of the application is configured in the declaration file. Specifically, a mapping relationship between the application identification number and the application implementation method is constructed, which is denoted as the first mapping relationship, and then the first mapping relationship is registered in the corresponding declaration file.

[0069] The application capability and the application capability type configured and declared in the declaration file corresponding to the application identification number are acquired, so as to realize the implementation of all the application capabilities. Specifically, the loading process of all the application capabilities is that a mapping relationship between the application identification number and all the application capabilities is constructed, which is denoted as the second mapping relationship, and then the second mapping relationship is registered in the corresponding declaration file.

[0070] It should be noted that after the registration of the first mapping relationship and the second mapping relationship is completed, the registration of the corresponding declaration file and the loading of the application program are realized.

[0071] In an embodiment, as shown in FIG. 2, the above-mentioned "installing the application program corresponding to the application identification number according to the application implementation method specified in the declaration file" in S20 specifically includes the following steps: Figure 3

[0072] S21, according to the application identification number, the application installation method specified in the application implementation method corresponding to the first mapping relationship and the capability installation method of the application capability corresponding to the second mapping relationship are acquired from the declaration file.

[0073] S22, the application installation method and the capability installation method are called, thereby realizing the installation of the corresponding application program.

[0074] In the embodiment, if the corresponding application program needs to be installed, the application program can be installed according to the application implementation method and all the application capabilities registered in the declaration file corresponding to the application program after the loading. The installation of the application program can be the installation of a specified application program or the synchronous installation of all the application programs, and the specific setting can be made according to the actual demand, which is not limited herein.

[0075] Further, the installation instruction of the corresponding application program is received, and the application identification number of the application program to be installed is carried in the installation instruction of the application program, and the number of the application identification number carried in the installation instruction of the application program is not limited herein.​

[0076] Specifically, according to the first mapping relationship, the application implementation method corresponding to the application identification number in the installation instruction of the application program is acquired, and the application installation method defined in the application implementation method is called to implement the installation of the application implementation of the application program.

[0077] Then, according to the second mapping relationship, the application capability corresponding to the application identification number in the installation instruction of the application program is acquired, and the capability installation method corresponding to the application capability is called to implement the installation of the application capability of the application program.

[0078] It can be understood that after the installation of the application implementation and the application capability is completed, it is determined that the installation of the corresponding application program is completed.

[0079] As an optional implementation, as shown in Figure 4 The embodiment of the application further includes the following steps:

[0080] S30, after the installation of the application program is completed, if the uninstallation instruction of the application program carrying the application identification number is received, the uninstallation of the application program corresponding to the application identification number is implemented according to the application uninstallation method defined in the declaration file.

[0081] In the embodiment, if the installation of the corresponding application program is completed, the application program can be subsequently uninstalled. The uninstallation includes the uninstallation of the application implementation and all application capabilities, and the uninstallation of the application program is performed according to the application implementation method and all application capabilities registered in the declaration file corresponding to the application program.

[0082] In addition, the uninstallation can be the uninstallation of a specified application program or the synchronous uninstallation of all application programs, and the corresponding setting can be performed according to actual needs, which is not limited herein.

[0083] Specifically, the uninstallation instruction of the application program is received, and the uninstallation instruction of the application program carries the application identification number of the application program to be uninstalled. The number of the application identification number carried by the installation instruction of the application program is not limited herein. Therefore, the application uninstallation method of the application implementation and all application capabilities configured in the declaration file corresponding to the application identification number is acquired to perform the uninstallation of the application program.

[0084] As shown in Figure 5 The above S30 specifically includes the following steps:

[0085] S31, according to the application identification number and the declaration file, the application uninstallation method defined in the application implementation method corresponding to the first mapping relationship is acquired, and the capability uninstallation method of the application capability corresponding to the second mapping relationship is acquired.

[0086] S32, respectively call the application uninstall method and the capability uninstall method, and then realize uninstall of the corresponding application program.

[0087] In the embodiment, if it is needed to uninstall the corresponding application program, the application program can be uninstalled according to the application implementation method and all application capabilities registered in the declaration file corresponding to the application program after loading.

[0088] Specifically, according to the first mapping relationship, the application implementation method corresponding to the application identification number in the installation instruction of the application program is obtained, the application uninstall method defined in the application implementation method is called, and the uninstall of the application implementation of the application program is realized.

[0089] Then, according to the second mapping relationship, the application capability corresponding to the application identification number in the installation instruction of the application program is obtained, and the capability uninstall method corresponding to the application capability is called, so as to realize the uninstall of the application capability of the application program.

[0090] It can be understood that after the uninstall of the application implementation and all application capabilities is completed, it is determined that the uninstall of the corresponding application program is completed.

[0091] As an optional implementation, if the iteration instruction of the target application program is received, the application capability required to be iterated and the declaration file containing the configuration declaration of the application capability required to be iterated are obtained. Then, according to the declaration file and the application capability required to be iterated, the loading and installation update of the target application program are realized.

[0092] In the embodiment, if it is determined that the target application program is iterated, the iteration instruction corresponding to the target application program is received, and the iteration instruction includes the application capability required to be iterated by the target application program. The iteration is to update the version of the corresponding application program, that is, to load and install the application program again, so as to realize the installation update of the corresponding application program.

[0093] Further, the iteration instruction is parsed to obtain the identification number of the application program required to be iterated carried in the iteration instruction, and the application program required to be iterated is taken as the target application program. When the iteration instruction is parsed, the parsing of the iteration instruction can be realized by the pre-set instruction parsing algorithm, and the instruction parsing algorithm includes but is not limited to the syntax analysis algorithm and the like.

[0094] Further, the application capability required to be iterated and the declaration file containing the configuration declaration of the application capability required to be iterated are obtained through the iteration instruction. Then, according to the declaration file and the application capability required to be iterated, the loading and installation update of the target application program are realized. That is, the installation of the application capability required to be iterated of the target application program is realized, so as to further update and expand the application capability of the target application program, and a new version of the target application program is generated.

[0095] Optionally, in the embodiment, the installation, update and uninstallation of the application program can also be recorded to form and store the record information, and then the record information is used to determine whether the corresponding application program has been installed in the application platform or the business system.

[0096] For example, if it is determined that the installation of the application program corresponding to the application identification number has been implemented, the corresponding application installation record information is generated; if it is determined that the uninstallation of the application program corresponding to the application identification number has been implemented, the application installation record information is deleted.

[0097] Furthermore, the application installation record information can be used to view the information corresponding to the installation and iterative update of the application program, such as the version, the life cycle and the like. When the corresponding application program is uninstalled, the application installation record information is deleted to avoid the interference of the record information on the management of the application program, and the efficiency of the management of the application program is improved.

[0098] The embodiment of the application manages the life cycle and the capability implementation of the application program through the core layer and the capability layer, and then different types of application life cycles are implemented in the core layer to support the application programs of different types generated in the business iteration process. The capability layer abstracts the existing underlying application capabilities to support the direct use of the existing underlying application capabilities by the application program, and provides the extension capability for the future added underlying application capabilities, thereby reducing the coupling degree between the different application capabilities of the application program and between the main system and the business logic, dividing the boundary between the business logic and the application implementation, improving the efficiency of the management process such as the loading and installation of the application program, reducing the maintenance cost of the application program and the application capability, and improving the user experience effect. In addition, the capability layer can support the implementation of all the application capabilities of the application program, and then the combination and superposition of the various application capabilities can be implemented to provide more flexible function combination and sales strategy for commercialization, and improve the economic applicability.

[0099] For example, the application program management device provided by the embodiment of the application comprises: Figure 6 The loading module 61 is configured to read the pre-stored declaration file, and load the application program according to the declaration file. The declaration file comprises the configuration declaration of the application implementation method of the corresponding application program and all the supported application capabilities.

[0100]

[0101] ​The installation module 62 is configured to, when receiving an installation instruction of an application program carrying an application identification number, acquire a declaration file having a mapping relationship with the application identification number, and implement installation of the application program corresponding to the application identification number according to an application implementation method defined in the declaration file; wherein the installed application program has all application capabilities supported by the capability layer.

[0102] Further optionally, as shown in Figure 7 The application program management apparatus further includes:

[0103] The receiving module 63 is configured to, if receiving an iteration instruction of a target application program, acquire an application capability required to be iterated and a declaration file of a configuration declaration of the application capability required to be iterated respectively.

[0104] The iteration module 64 is configured to, according to the declaration file and the application capability required to be iterated, implement loading and installation update of the target application program.

[0105] It can be understood that the apparatus of the embodiment corresponds to the application program management method of the above-mentioned embodiment, and the optional items in the above-mentioned embodiment are also applicable to the embodiment, and thus are not repeated here.

[0106] The embodiment of the application further provides a computer device which can be but is not limited to a desktop computer, a notebook computer, a smart phone, a tablet computer and the like, and has no limitation on the existing form and mainly depends on whether it needs to support interface display function of a browser webpage and the like. Illustratively, the computer device includes a processor and a memory, wherein the memory stores a computer program, and the processor runs the computer program to enable the computer device to execute the application program management method of the application, and thus to implement different types of application life cycles to support a plurality of different types of application programs generated in a business iteration process; for abstraction of existing underlying application capabilities, the application program can directly use the existing underlying application capabilities, and meanwhile, the expansion capability is provided for future added underlying application capabilities, thereby reducing the coupling degree between different application capabilities of the application program and between a main system and business logic, and accordingly dividing the boundary between the business logic and application implementation, improving the efficiency of the management process such as loading and installation of the application program, and accordingly reducing the maintenance cost of the application program and the application capability.

[0107] The processor can be an integrated circuit chip with a processing capability of signals. The processor can be a general processor, including a central processing unit (CPU), a graphics processing unit (GPU), and a network processor (NP), a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, a discrete gate or transistor logic device, a discrete hardware component, at least one of the above. The general processor can be a microprocessor or the processor can also be any conventional processor or the like, which can implement or execute the disclosed methods, steps and logic block diagrams in the embodiments of the present application.

[0108] The memory can be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read only memory (PROM), an erasable programmable read only memory (EPROM), an electrically erasable programmable read only memory (EEPROM) and the like. The memory is used to store a computer program. After receiving an execution instruction, the processor can execute the computer program accordingly.

[0109] In addition, the present application also provides a computer storage medium for storing the computer program used in the above computer device. When the computer program is executed on the processor, the application management method of the above embodiment is implemented. The method includes reading a pre-stored declaration file, loading a corresponding application program according to the declaration file, and the declaration file includes a configuration declaration of an application implementation method of a corresponding application program and all supported application capabilities. When an installation instruction of an application program carrying an application identification number is received, a declaration file having a mapping relationship with the application identification number is obtained, and the installation of an application program corresponding to the application identification number is implemented according to the application implementation method specified in the declaration file. The installed application program has all the application capabilities supported by the capability layer.

[0110] It can be understood that the optional items in the application management method of the above embodiment are also applicable to the present embodiment, and therefore will not be described here.

[0111] For example, the computer storage medium can include, but is not limited to, a variety of media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0112] In several embodiments provided in the present application, it should be understood that the disclosed apparatus and method can also be implemented by other manners. The apparatus embodiments described above are only illustrative, for example, the flowcharts and structural diagrams in the drawings show the possible implementation architecture, functions and operations of the apparatus, method and computer program product according to the embodiments of the present application. In this regard, each block in the flowchart or block diagram can represent a module, a program segment or a part of code, which includes one or more executable instructions for implementing the specified logic function. It should also be noted that in alternative implementation manners, the functions annotated in the blocks can also occur in different order from that annotated in the drawings. For example, two consecutive blocks can actually be executed substantially in parallel, and sometimes they can also be executed in reverse order, depending on the functions involved. It should also be noted that each block in the structural diagram and / or flowchart, and the combination of blocks in the structural diagram and / or flowchart, can be implemented by a dedicated hardware-based system that performs the specified functions or actions, or can be implemented by a combination of dedicated hardware and computer instructions.

[0113] In addition, the functional modules or units in each embodiment of the present application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.

[0114] When the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the present application can be embodied in the form of a software product, and the computer software product is stored in a storage medium, and includes several instructions for causing a computer device (which can be a smart phone, a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the embodiments of the present application.

[0115] The above describes only the specific implementation manners of the present application, but the protection scope of the present application is not limited thereto, any person skilled in the art can easily think of changes or replacements within the technical range disclosed in the present application, which should be covered within the protection scope of the present application.

Claims

1. An application management method, characterized in that, Applied to an application platform, the application platform includes a core layer and a capability layer. The core layer is used to execute common logic for the application's lifecycle, and the capability layer is used to provide general application capabilities for the application. The method includes: Read the pre-stored declaration file and load the corresponding application according to the declaration file; the declaration file includes the application implementation method of the corresponding application and the configuration declaration of all supported application capabilities; Construct a first mapping relationship between the application identifier of the application and the application implementation method, and a second mapping relationship between the application identifier and the general application capability; Upon receiving an installation instruction for an application carrying an application identifier, based on the first mapping relationship and the second mapping relationship, a declaration file showing a mapping relationship with the application identifier is obtained. The application corresponding to the application identifier is installed according to the application implementation method specified in the declaration file. The installed application has all supported application capabilities.

2. The application management method according to claim 1, characterized in that, The loading process for a single application includes: When a loading instruction carrying an application identifier is received, the application identifier is compared with a predefined identifier to determine the application implementation method of the application corresponding to the application identifier and the type of application capability declared in the corresponding declaration file. Register the first mapping relationship and the second mapping relationship in the corresponding declaration file to realize the registration of the corresponding declaration file and the loading of the corresponding application.

3. The application management method according to claim 2, characterized in that, The method of comparing the application identifier with a predefined identifier to determine the application implementation corresponding to the application identifier includes: If the application identifier matches a predefined identifier, then the application corresponding to the application identifier is determined to use the application implementation method of a built-in application. If the application identifier does not match the predefined identifier, then the application corresponding to the application identifier is determined to use the application implementation method of a general application.

4. The application management method according to claim 1, characterized in that, The step of installing the application corresponding to the application identifier according to the application implementation method specified in the declaration file includes: Based on the application identifier, the application installation method specified in the application implementation method corresponding to the first mapping relationship and the capability installation method of the application capability corresponding to the second mapping relationship are obtained from the declaration file respectively; wherein, the first mapping relationship is the mapping relationship between the application identifier and the application implementation method; and the second mapping relationship is the mapping relationship between the application identifier and the application capability; The application installation method and the capability installation method are invoked respectively to install the corresponding application.

5. The application management method according to claim 1, characterized in that, The method further includes: After the installation of the application is completed, if an uninstallation instruction for an application carrying the application identifier is received, the application corresponding to the application identifier is uninstalled according to the application uninstallation method specified in the declaration file.

6. The application management method according to claim 5, characterized in that, The step of uninstalling the application corresponding to the application identifier according to the application uninstallation method specified in the declaration file includes: Based on the application identifier and the declaration file, obtain the application uninstallation method specified in the application implementation method corresponding to the first mapping relationship, and obtain the capability uninstallation method of the application capability corresponding to the second mapping relationship; wherein, the first mapping relationship is the mapping relationship between the application identifier and the application implementation method; the second mapping relationship is the mapping relationship between the application identifier and the application capability; The application uninstallation method and the capability uninstallation method are called respectively to uninstall the corresponding application.

7. The application management method according to claim 1, characterized in that, The method further includes: If an iteration instruction from the target application is received, the application capabilities to be iterated and the declaration file containing the configuration declarations of the application capabilities contained in the iteration instruction are obtained respectively. Based on the declaration file and the application capabilities required for iteration, the target application is loaded and updated.

8. An application management device, characterized in that, Applied to an application platform, the application platform comprising a core layer and a capability layer, the core layer executing common logic for the application's lifecycle, and the capability layer providing general application capabilities for the application, the device includes: The loading module is used to read a pre-stored declaration file and load the application accordingly based on the declaration file; the declaration file includes the application implementation method of the corresponding application and the configuration declaration of all supported application capabilities; The mapping module is used to construct a first mapping relationship between the application identifier of the application and the application implementation method, and a second mapping relationship between the application identifier and the general application capability; The installation module is used to, upon receiving an installation instruction for an application carrying an application identifier, obtain a declaration file that has a mapping relationship with the application identifier based on the first mapping relationship and the second mapping relationship, and install the application corresponding to the application identifier according to the application implementation method specified in the declaration file; wherein, the installed application has all supported application capabilities.

9. A computer device, characterized in that, The computer device includes a memory and at least one processor, the memory storing a computer program, and the processor executing the computer program to implement the application management method according to any one of claims 1-7.

10. A computer storage medium, characterized in that, It stores a computer program, which, when executed, implements the application management method according to any one of claims 1-7.

Citation Information

Patent Citations

  • Safe embedded operating system capable of supporting multi-stage loading

    CN102479097A

  • Application safety monitoring method and system based on resource declaration

    CN102567175A