Information determination method, device and equipment, computer storage medium and computer program product
By obtaining and processing the metadata and entry files of page plug-in, page plug-in updates and hot-swap removal are realized, solving the problem of plug-ins not being hot-swap and low execution efficiency in the existing technology, and improving the flexibility and efficiency of the system.
Patent Information
- Application Number
- CN202411865637.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-17
- Publication Date
- 2025-05-06
AI Technical Summary
In the prior art, the page plug-in method has the problem that the plug-in cannot be hot plugged and the execution efficiency of plug-ins is low.
By obtaining the plug-in metadata and plug-in entry files of the page to be generated, the plug-in that is to be generated is processed based on these data, the page is plug-in updated and the plug-in hot plug-in is supported.
It realizes hot plugging of page plug-ins, improves execution efficiency, and allows new plug-ins to be added without restarting the service.
Smart Images

Figure CN119938036A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to information determination technology in the field of communications, and in particular to an information determination method, device, equipment, computer storage medium and computer program product. Background Art
[0002] As users' customization needs increase and time response requirements become more timely, the pressure on front-end development and deployment of World Wide Web (WEB) applications is increasing. In order to meet various customization needs, there is currently a configurable way to control the display of different pages. This method requires all functions to be developed and packaged in advance. If a page needs to be changed, the entire application needs to be recompiled and deployed. In response to this problem, a page plug-in method has emerged in related technologies. It mainly plugs in the content of the page, rather than the page itself. It is mainly used in scenarios where the page structure is relatively fixed but the page content needs to change frequently. This page plug-in method has the problem that it needs to be restarted if you want to use the newly added plug-in service, and hot plugging of plug-ins cannot be achieved, and the execution efficiency is low. Summary of the invention
[0003] To solve the above technical problems, the embodiments of the present application provide an information determination method, apparatus, device, computer storage medium and computer program product, which implement hot-plugging of plug-in updates for pages and improve execution efficiency.
[0004] To achieve the above purpose, the technical solution of the embodiment of the present application is implemented as follows:
[0005] A method for determining information, the method comprising:
[0006] Obtaining plug-in metadata of a page to be generated, wherein the plug-in metadata is used to describe information of the plug-in of the page to be generated;
[0007] Determine the plug-in entry file of the plug-in for the page to be generated;
[0008] Based on the plug-in metadata and the plug-in entry file, the plug-in of the page to be generated is processed to obtain the page to be generated.
[0009] In the above scheme, the processing of the plug-in of the page to be generated based on the plug-in metadata and the plug-in entry file to obtain the page to be generated includes:
[0010] For the second type of page, determining the menu information and routing information of the to-be-generated page based on the plug-in metadata;
[0011] The page to be generated is generated based on the menu information, the routing information and the plug-in entry file.
[0012] In the above scheme, the method further comprises:
[0013] Receiving modification information of the plug-in for the page to be generated input by the user;
[0014] The page to be generated is updated based on the modification information.
[0015] In the above solution, updating the to-be-generated page based on the modification information includes:
[0016] For the first type of page, obtaining a target insertion point of the plug-in to be updated and an identifier of the plug-in to be updated from the modification information;
[0017] The page to be generated is updated based on the identifier of the plug-in to be updated and the target insertion point.
[0018] In the above solution, updating the page to be generated based on the identifier of the plug-in to be updated and the target insertion point includes:
[0019] If it is determined based on the identifier of the plug-in to be updated that the plug-in to be updated exists, updating the page to be generated based on the identifier of the plug-in to be updated and the target insertion point;
[0020] If it is determined based on the identifier of the plug-in to be updated that the plug-in to be updated does not exist, the page to be generated is updated based on the target component.
[0021] In the above solution, updating the page to be generated based on the identifier of the plug-in to be updated and the target insertion point includes:
[0022] If the plug-in to be updated corresponds to a subcomponent, the plug-in root component corresponding to the page to be generated is processed;
[0023] Determine, by means of the plug-in root component, an address of a plug-in resource based on an identifier of the plug-in to be updated and the plug-in metadata;
[0024] The plug-in resource is acquired based on the address of the plug-in resource, and the page to be generated is updated based on the plug-in resource and the target insertion point.
[0025] In the above solution, updating the to-be-generated page based on the modification information includes:
[0026] For the second type of page, obtaining a menu to be updated from the modification information;
[0027] Updating menu information of the page to be generated based on the menu to be updated to obtain updated menu information;
[0028] An updated to-be-generated page is generated based on the updated menu information and routing information.
[0029] An information determination device, comprising:
[0030] An acquisition unit, used for acquiring plug-in metadata of a page to be generated; wherein the plug-in metadata is used for describing information of the plug-in of the page to be generated;
[0031] A determination unit, used to determine a plug-in entry file of the plug-in of the page to be generated;
[0032] A processing unit is used to process the plug-in of the page to be generated based on the plug-in metadata and the plug-in entry file to obtain the page to be generated.
[0033] An information determination device, the control device comprising: a processor, a memory and a communication bus;
[0034] The communication bus is used to realize the communication connection between the processor and the memory;
[0035] The processor is used to execute the information determination program in the memory to implement the steps of the above-mentioned information determination method.
[0036] A computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of the above-mentioned information determination method.
[0037] A computer program product comprises a computer program, wherein the computer program implements the above method when executed by a processor.
[0038] The information determination method, apparatus, device, computer storage medium and computer program product provided in the embodiments of the present application can obtain the plug-in metadata of the page to be generated, the plug-in metadata is used to describe the information of the plug-in of the page to be generated, determine the plug-in entry file of the plug-in of the page to be generated, and process the plug-in of the page to be generated based on the plug-in metadata and the plug-in entry file to obtain the page to be generated. In this way, the plug-in of the entire page can be processed according to the plug-in metadata for the entire page and the plug-in entry file of the plug-in to generate the corresponding page, that is, the entire page can be plug-inized, rather than just the content of the page being plug-inized as in the related art. New plug-ins can be added without restarting the service, hot plugging of plug-ins is realized, and execution efficiency is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1A flowchart of an information determination method provided in an embodiment of the present application;
[0040] Figure 2 A schematic diagram of an architecture corresponding to an information determination method provided in an embodiment of the present application;
[0041] Figure 3 A schematic diagram of an insertion point in an information determination method provided in an embodiment of the present application;
[0042] Figure 4 A schematic diagram of rendering a plug-in based on a plug-in root component in an information determination method provided in an embodiment of the present application;
[0043] Figure 5 A schematic diagram of the structure of an information determination device provided in an embodiment of the present application;
[0044] Figure 6 A schematic diagram of the structure of an information determination device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0045] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
[0046] It should be understood that the "embodiments of the present application" or "the aforementioned embodiments" mentioned throughout the specification mean that specific features, structures or characteristics related to the embodiments are included in at least one embodiment of the present application. Therefore, "in the embodiments of the present application" or "in the aforementioned embodiments" appearing throughout the specification may not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics may be combined in one or more embodiments in any suitable manner. In the various embodiments of the present application, the size of the sequence numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application. The above-mentioned sequence numbers of the embodiments of the present application are for description only and do not represent the advantages and disadvantages of the embodiments.
[0047] Unless otherwise specified, the electronic device performs any step in the embodiments of the present application, and the processor of the electronic device may perform the step. It is also worth noting that the embodiments of the present application do not limit the order in which the electronic device performs the following steps. In addition, the methods used to process data in different embodiments may be the same method or different methods. It should also be noted that any step in the embodiments of the present application can be independently executed by the electronic device, that is, when the electronic device executes any step in the following embodiments, it may not rely on the execution of other steps.
[0048] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0049] The present application embodiment provides an information determination method, which can be applied to a server, referring to Figure 1 As shown, the method may include the following steps:
[0050] Step 101: Obtain plugin metadata of the page to be generated.
[0051] The plug-in metadata is used to describe the information of the plug-in of the page to be generated.
[0052] In an embodiment of the present application, the page to be generated may refer to a page that the user needs to access; after the user generates a page access event through a client operation, the client may send a request to obtain the page to be generated to the server, and after receiving the request, the server may obtain the plug-in metadata of the page to be generated.
[0053] It should be noted that plugin metadata may include: plugin basic information, routing information, insertion point information, permission information, and resource information; among which, plugin basic information may include: plugin identification, plugin name, plugin type, version number, flag information, etc. The file name of the plugin metadata is plugin, and the file format may be either JSON or YAML.
[0054] Step 102: Determine the plug-in entry file of the plug-in for the page to be generated.
[0055] The plugin entry file of each plugin needs to export a plugin object, which is an instance of the plugin type Plugin. The root attribute of the plugin object is the encapsulation of the plugin content. There is no restriction on the plugin content. All you need to do is encapsulate all the content into a class or function and assign it to the root attribute of the plugin object. Examples of plugin objects and root attributes are as follows:
[0056]
[0057]
[0058] In other embodiments of the present application, the plugin metadata and plugin entry files can be Figure 2 The plug-in development module shown in is configured; and the plug-in package file corresponding to the plug-in can be parsed to obtain the plug-in metadata and the plug-in entry file.
[0059] Step 103: Based on the plug-in metadata and the plug-in entry file, the plug-in of the page to be generated is processed to obtain the page to be generated.
[0060] In an embodiment of the present application, the server can render the plug-in in the page to be generated according to the obtained plug-in metadata and plug-in entry file, thereby generating the page to be generated; in addition, the server can return the generated page to be generated to the client so that the page to be generated can be displayed on the client.
[0061] It should be noted that pages can include two types: pages corresponding to component-level plug-ins and pages of page-level plug-ins; among them, component-level plug-ins refer to a region in the page corresponding to a plug-in, and page-level plug-in pages refer to the entire page as a plug-in.
[0062] In other embodiments of the present application, the above step 103 can be implemented in the following manner:
[0063] A1. For the second type of page, determine the menu information and routing information of the to-be-generated page based on the plug-in metadata.
[0064] The second type of page may refer to a page of a page-level plug-in. There is no insertion point in the page, and the corresponding rendering time should be when a certain Uniform Resource Locator (URL) address is routed through a menu or link. Specifically, the plug-in metadata may be parsed, and the menu information and routing information of the page to be generated may be determined from the plug-in metadata.
[0065] A2. Generate the page to be generated based on the menu information, routing information and plug-in entry file.
[0066] Specifically, after obtaining the menu information and the routing information, the server can render the plug-in according to the menu information, the routing information and the plug-in entry file, and then generate the page to be generated.
[0067] In other embodiments of the present application, the method may further include the following steps:
[0068] Step 104: Receive modification information of the plug-in for the page to be generated input by the user.
[0069] Among them, the modification information can be the information input into the client when the user wants to modify the information in the to-be-generated page; it should be noted that if it is a page corresponding to a component-level plug-in, the modification information may include the identifier of the plug-in to be updated and the target insertion point of the plug-in to be updated; if it is a page of a page-level plug-in, the modification information includes the menu to be updated.
[0070] Step 105: Update the page to be generated based on the modification information.
[0071] After receiving the modification information sent by the client, the server can update the page to be generated according to the modification information. It should be noted that for the page corresponding to the component-level plug-in, the plug-in in the page to be generated can be updated according to the modification information so as to update the page to be generated; for the page of the page-level plug-in, the menu information in the plug-in of the page to be generated can be updated according to the modification information so as to update the page to be generated.
[0072] In other embodiments of the present application, the above step 105 can be implemented in the following manner:
[0073] B1. For the first type of page, obtain the target insertion point of the plug-in to be updated and the identifier of the plug-in to be updated from the modification information.
[0074] The first type of page may refer to a page corresponding to a component-level plug-in; and different areas in the page to be generated correspond to different plug-ins. It should be noted that for pages corresponding to component-level plug-ins, each page maintains a list of plug-in insertion points, and each plug-in insertion point has a unique identifier. Specifically, the insertion point can be as follows: Figure 3 as shown in .
[0075] Specifically, the server can parse the modification information to obtain the target insertion point of the plug-in to be updated and the identifier of the plug-in to be updated. In a feasible implementation, the plug-in to be updated can refer to a plug-in that needs to be modified, a plug-in that needs to be stopped, or a plug-in that needs to be added.
[0076] It should be noted that the target insertion point can be determined based on the insertion point list and the insertion point identifier; that is, the specific position of the target insertion point can be determined from the insertion point list based on the insertion point identifier.
[0077] B2. Update the page to be generated based on the identifier of the plug-in to be updated and the target insertion point.
[0078] In the embodiment of the present application, the server may update the page to be generated according to whether the server has the plug-in to be updated and in combination with the identifier of the plug-in to be updated and the target insertion point.
[0079] In other embodiments of the present application, the above-mentioned updating of the to-be-generated page based on the identifier of the to-be-updated plug-in and the target insertion point includes:
[0080] If it is determined based on the identifier of the plug-in to be updated that there is a plug-in to be updated, the page to be generated is updated based on the identifier of the plug-in to be updated and the target insertion point.
[0081] Among them, if the plug-in to be updated can be found in the server according to the identification of the plug-in to be updated, then the server can update the plug-in in the page to be generated based on the identification and target insertion point of the plug-in to be updated, and generate an updated page to be generated based on the updated plug-in; specifically, the plug-in in the page to be generated can be modified, stopped using, or added based on the identification and target insertion point of the plug-in to be updated, and then the updated plug-in can be rendered to generate an updated page to be generated.
[0082] It should be noted that the plug-in in the server can be Figure 2 The plugins in the plugin management module are managed by the plugin management module, and the plugins in the plugin management module are installed and enabled plugins, which can be rendered into the plugin application module. If you want to stop using the plugin to be updated, you can pause the plugin -> delete plugin metadata -> delete plugin resources. The plugins that have been enabled in the plugin management module can be displayed and applied in the plugin application module; the plugins that have been uninstalled or disabled in the plugin management module cannot provide the pages and functions provided by the plugin in the plugin application module, thus realizing hot swapping of plugins.
[0083] If it is determined based on the identifier of the plug-in to be updated that there is no plug-in to be updated, the page to be generated is updated based on the target component and the target insertion point.
[0084] Among them, if the plug-in to be updated cannot be found in the server according to the identifier of the plug-in to be updated, the server can update the plug-in in the page to be generated based on the default target component and target insertion point, and generate an updated page to be generated based on the updated plug-in; specifically, the plug-in in the page to be generated can be modified, stopped using, or added based on the default target component and target insertion point, and then the updated plug-in is rendered to generate an updated page to be generated.
[0085] In other embodiments of the present application, the above-mentioned updating of the to-be-generated page based on the identifier of the to-be-updated plug-in and the target insertion point includes:
[0086] If the subcomponent of the plug-in to be updated is the plug-in root component corresponding to the page to be generated is processed;
[0087] Determine the address of the plug-in resource through the plug-in root component based on the identifier of the plug-in to be updated and the plug-in metadata;
[0088] The plug-in resource is obtained based on the address of the plug-in resource, and the page to be generated is updated based on the plug-in resource and the target insertion point.
[0089] Among them, if the plug-in to be updated corresponds to a subcomponent in the component of the page, such as Figure 4As shown, the plug-in root component can be rendered first, and then the plug-in root component queries the plug-in metadata according to the identifier of the plug-in to be updated to obtain the address of the plug-in resource, and then dynamically obtains the plug-in resource according to the address of the plug-in resource, and as its child component, renders the plug-in to be updated according to the plug-in resource and the target insertion point so as to update the plug-in in the page to be generated, thereby obtaining the updated page to be generated.
[0090] In other embodiments of the present application, the above step 105 may also be implemented in the following manner:
[0091] For the second type of page, obtain the menu to be updated from the modification information;
[0092] Update the menu information of the page to be generated based on the menu to be updated, and obtain the updated menu information;
[0093] An updated page to be generated is generated based on the updated menu information and routing information.
[0094] Specifically, when the client is initialized, the metadata of the activated plug-in is first obtained, and then the corresponding menu of the page-level plug-in is dynamically generated according to the plug-in metadata. First, the plug-in management module is requested to load the metadata of the activated plug-in, filter out the authorized plug-ins, and then modify, delete or add the menu in the menu information of the page to be generated according to the menu to be updated, and generate the updated page to be generated according to the updated menu information and the routing information corresponding to the menu in the plug-in metadata.
[0095] It should be noted that when the user clicks a menu item on the updated to-be-generated page, the user will be routed to the corresponding plug-in page.
[0096] In other embodiments of the present application, the present application provides a management method that supports both page-level plug-ins and component-level plug-ins through plug-in root components, insertion points, dynamically generated menus, etc., and implements hot swapping of plug-ins by performing management operations such as installation and uninstallation of plug-ins in the plug-in management module.
[0097] It should be noted that, for the description of the same steps and the same contents in this embodiment as those in other embodiments, reference can be made to the description in other embodiments and will not be repeated here.
[0098] The information determination method provided in the embodiment of the present application can process the plug-in of the entire page to generate a corresponding page based on the plug-in metadata for the entire page and the plug-in entry file of the plug-in. That is, the entire page can be plug-in-ized, rather than just the content of the page being plug-in-ized as in the related art. New plug-ins can be added without restarting the service, realizing hot swapping of plug-ins, thereby improving execution efficiency.
[0099] Based on the above embodiments, the embodiments of the present application provide an information determination device, which can be applied to Figure 1 In the information determination method provided in the corresponding embodiment, refer to Figure 5 As shown, the information determination device 2 may include: an acquisition unit 21, a determination unit 22 and a processing unit 23, wherein:
[0100] The acquisition unit 21 is used to acquire the plug-in metadata of the page to be generated; wherein the plug-in metadata is used to describe the information of the plug-in of the page to be generated;
[0101] A determination unit 22, used to determine a plug-in entry file of a plug-in for a page to be generated;
[0102] The processing unit 23 is used to process the plug-in of the page to be generated based on the plug-in metadata and the plug-in entry file to obtain the page to be generated.
[0103] In other embodiments of the present application, the processing unit 23 is further configured to perform the following steps:
[0104] For the second type of page, determining the menu information and routing information of the to-be-generated page based on the plug-in metadata;
[0105] Generate the page to be generated based on the menu information, routing information and plug-in entry file.
[0106] In other embodiments of the present application, the processing unit 23 is further configured to perform the following steps:
[0107] Receive modification information of the plug-in for the page to be generated input by the user;
[0108] Update the page to be generated based on the modified information.
[0109] In other embodiments of the present application, the processing unit 23 is further configured to perform the following steps:
[0110] For the first type of page, obtaining a target insertion point of the plug-in to be updated and an identifier of the plug-in to be updated from the modification information;
[0111] Update the page to be generated based on the identifier of the plug-in to be updated and the target insertion point.
[0112] In other embodiments of the present application, the processing unit 23 is further configured to perform the following steps:
[0113] If it is determined based on the identifier of the plug-in to be updated that there is a plug-in to be updated, updating the page to be generated based on the identifier of the plug-in to be updated and the target insertion point;
[0114] If it is determined based on the identifier of the plug-in to be updated that there is no plug-in to be updated, the page to be generated is updated based on the target component and the target insertion point.
[0115] In other embodiments of the present application, the processing unit 23 is further configured to perform the following steps:
[0116] If the subcomponent of the plug-in to be updated is the plug-in root component corresponding to the page to be generated is processed;
[0117] Determine the address of the plug-in resource through the plug-in root component based on the identifier of the plug-in to be updated and the plug-in metadata;
[0118] The plug-in resource is obtained based on the address of the plug-in resource, and the page to be generated is updated based on the plug-in resource and the target insertion point.
[0119] In other embodiments of the present application, the processing unit 23 is further configured to perform the following steps:
[0120] For the second type of page, obtain the menu to be updated from the modification information;
[0121] Update the menu information of the page to be generated based on the menu to be updated, and obtain the updated menu information;
[0122] An updated page to be generated is generated based on the updated menu information and routing information.
[0123] It should be noted that the specific implementation process of the steps performed by each unit in the embodiment of the present application can be referred to Figure 1 The implementation process of the information determination method provided in the corresponding embodiment will not be repeated here.
[0124] The information determination device provided in the embodiment of the present application can process the plug-in of the entire page and generate a corresponding page based on the plug-in metadata for the entire page and the plug-in entry file of the plug-in. That is, the entire page can be plug-in-ized, rather than just the content of the page being plug-in-ized as in the related art. New plug-ins can be added without restarting the service, realizing hot swapping of plug-ins, thereby improving execution efficiency.
[0125] Based on the above embodiments, the embodiments of the present application provide an information determination device, which can be applied to Figure 1 In the information determination method provided in the corresponding embodiment, refer to Figure 6 As shown, the information determination device 3 may include: a processor 31, a memory 32 and a communication bus 33, wherein:
[0126] The communication bus 33 is used to realize the communication connection between the processor 31 and the memory 32;
[0127] The processor 31 is used to execute the information determination program in the memory 32 to implement the following steps:
[0128] Obtaining plugin metadata of the page to be generated; wherein the plugin metadata is used to describe information of the plugin of the page to be generated;
[0129] Determine the plugin entry file of the plugin for the page to be generated;
[0130] Based on the plug-in metadata and the plug-in entry file, the plug-in of the page to be generated is processed to obtain the page to be generated.
[0131] In other embodiments of the present application, the processor 31 is used to execute the information determination program in the memory 32, based on the plug-in metadata and the plug-in entry file, to process the plug-in of the page to be generated to obtain the page to be generated, so as to implement the following steps:
[0132] Identify the positioning mark in the first image to obtain the target feature point;
[0133] For the second type of page, determining the menu information and routing information of the to-be-generated page based on the plug-in metadata;
[0134] Generate the page to be generated based on the menu information, routing information and plug-in entry file.
[0135] In other embodiments of the present application, the processor 31 is used to execute the information determination program in the memory 32, and can also implement the following steps:
[0136] Receive modification information of the plug-in for the page to be generated input by the user;
[0137] Update the page to be generated based on the modified information.
[0138] In other embodiments of the present application, the processor 31 is used to execute the information determination program in the memory 32 to update the to-be-generated page based on the modification information, so as to implement the following steps:
[0139] For the first type of page, obtaining a target insertion point of the plug-in to be updated and an identifier of the plug-in to be updated from the modification information;
[0140] Update the page to be generated based on the identifier of the plug-in to be updated and the target insertion point.
[0141] In other embodiments of the present application, the processor 31 is used to execute the information determination program in the memory 32 to update the to-be-generated page based on the identifier of the plug-in to be updated and the target insertion point to obtain the updated page, so as to implement the following steps:
[0142] If it is determined based on the identifier of the plug-in to be updated that there is a plug-in to be updated, updating the page to be generated based on the identifier of the plug-in to be updated and the target insertion point;
[0143] If it is determined based on the identifier of the plug-in to be updated that there is no plug-in to be updated, the page to be generated is updated based on the target component and the target insertion point.
[0144] In other embodiments of the present application, the processor 31 is used to execute the information determination program in the memory 32 to update the to-be-generated page based on the identifier of the to-be-updated plug-in and the target insertion point, so as to implement the following steps:
[0145] If the subcomponent of the plug-in to be updated is the plug-in root component corresponding to the page to be generated is processed;
[0146] Determine the address of the plug-in resource through the plug-in root component based on the identifier of the plug-in to be updated and the plug-in metadata;
[0147] The plug-in resource is obtained based on the address of the plug-in resource, and the page to be generated is updated based on the plug-in resource and the target insertion point.
[0148] In other embodiments of the present application, the processor 31 is used to execute the information determination program in the memory 32 to update the to-be-generated page based on the modification information, so as to implement the following steps:
[0149] For the second type of page, obtain the menu to be updated from the modification information;
[0150] Update the menu information of the page to be generated based on the menu to be updated, and obtain the updated menu information;
[0151] An updated page to be generated is generated based on the updated menu information and routing information.
[0152] It should be noted that the specific description of the steps executed by the processor can be referred to Figure 1 The information determination method provided in the corresponding embodiment will not be repeated here.
[0153] The information determination device provided in the embodiment of the present application can process the plug-in of the entire page and generate a corresponding page based on the plug-in metadata for the entire page and the plug-in entry file of the plug-in. That is, the entire page can be plug-in-ized, rather than just the content of the page being plug-in-ized as in the related art. New plug-ins can be added without restarting the service, realizing hot swapping of plug-ins, thereby improving execution efficiency.
[0154] Based on the foregoing embodiments, the embodiments of the present application provide a computer-readable storage medium, which stores one or more programs, and the one or more programs can be executed by one or more processors to implement Figure 1 The corresponding embodiments provide steps of the information determination method.
[0155] Based on the foregoing embodiments, an embodiment of the present application provides a computer program product, including a computer program, which can be executed by the processor 31 to complete Figure 1 The corresponding embodiments provide steps of the information determination method.
[0156] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of hardware embodiments, software embodiments, or embodiments in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) that contain computer-usable program code.
[0157] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0158] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0159] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0160] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for determining information, characterized in that: The method comprises: Obtaining plug-in metadata of a page to be generated; wherein the plug-in metadata is used to describe information of the plug-in of the page to be generated; Determine the plug-in entry file of the plug-in for the page to be generated; Based on the plug-in metadata and the plug-in entry file, the plug-in of the page to be generated is processed to obtain the page to be generated.
2. The method according to claim 1, characterized in that The step of processing the plug-in of the page to be generated based on the plug-in metadata and the plug-in entry file to obtain the page to be generated includes: For the second type of page, determining the menu information and routing information of the to-be-generated page based on the plug-in metadata; The page to be generated is generated based on the menu information, the routing information and the plug-in entry file.
3. The method according to claim 1, characterized in that The method further comprises: Receiving modification information of the plug-in for the page to be generated input by the user; The page to be generated is updated based on the modification information.
4. The method according to claim 3, characterized in that The updating of the to-be-generated page based on the modification information includes: For the first type of page, obtaining a target insertion point of the plug-in to be updated and an identifier of the plug-in to be updated from the modification information; The page to be generated is updated based on the identifier of the plug-in to be updated and the target insertion point.
5. The method according to claim 4, characterized in that The updating of the to-be-generated page based on the identifier of the to-be-updated plug-in and the target insertion point includes: If it is determined based on the identifier of the plug-in to be updated that the plug-in to be updated exists, updating the page to be generated based on the identifier of the plug-in to be updated and the target insertion point; If it is determined based on the identifier of the plug-in to be updated that the plug-in to be updated does not exist, the page to be generated is updated based on the target component and the target insertion point.
6. The method according to claim 5, characterized in that The updating of the to-be-generated page based on the identifier of the to-be-updated plug-in and the target insertion point includes: If the plug-in to be updated corresponds to a subcomponent, the plug-in root component corresponding to the page to be generated is processed; Determine, by means of the plug-in root component, an address of a plug-in resource based on an identifier of the plug-in to be updated and the plug-in metadata; The plug-in resource is acquired based on the address of the plug-in resource, and the page to be generated is updated based on the plug-in resource and the target insertion point.
7. The method according to claim 3, characterized in that The updating of the to-be-generated page based on the modification information includes: For the second type of page, obtaining a menu to be updated from the modification information; Updating menu information of the page to be generated based on the menu to be updated to obtain updated menu information; An updated to-be-generated page is generated based on the updated menu information and routing information.
8. An information determination device, characterized in that: include: An acquisition unit, used for acquiring plug-in metadata of a page to be generated; wherein the plug-in metadata is used for describing information of the plug-in of the page to be generated; A determination unit, used to determine a plug-in entry file of the plug-in of the page to be generated; A processing unit is used to process the plug-in of the page to be generated based on the plug-in metadata and the plug-in entry file to obtain the page to be generated.
9. A server, characterized in that: The server includes: a processor, a memory and a communication bus; The communication bus is used to realize the communication connection between the processor and the memory; The processor is used to execute the information determination program in the memory to implement the steps of the information determination method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of the information determination method according to any one of claims 1 to 7.
11. A computer program product, comprising a computer program, characterized in that: When the computer program is executed by a processor, the computer program implements the method according to any one of claims 1 to 7.