[go: up one dir, main page]

CN119149138A - Dynamic plug-in expansion system and method based on xml-pull - Google Patents

Dynamic plug-in expansion system and method based on xml-pull Download PDF

Info

Publication number
CN119149138A
CN119149138A CN202411648231.3A CN202411648231A CN119149138A CN 119149138 A CN119149138 A CN 119149138A CN 202411648231 A CN202411648231 A CN 202411648231A CN 119149138 A CN119149138 A CN 119149138A
Authority
CN
China
Prior art keywords
interface
plug
xml
features
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202411648231.3A
Other languages
Chinese (zh)
Other versions
CN119149138B (en
Inventor
姚建荣
范成良
戴柳杨
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Wangsheng Shuxin Software Co ltd
Original Assignee
Zhejiang Wangsheng Shuxin Software Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Wangsheng Shuxin Software Co ltd filed Critical Zhejiang Wangsheng Shuxin Software Co ltd
Priority to CN202411648231.3A priority Critical patent/CN119149138B/en
Publication of CN119149138A publication Critical patent/CN119149138A/en
Application granted granted Critical
Publication of CN119149138B publication Critical patent/CN119149138B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本发明涉及插件扩展技术领域,本发明公开了基于xml‑pull的动态插件扩展系统和方法;包括从基础信息中筛选出插件特征,将插件特征构建成xml文件,获取出xml文件的扩展属性,判定是否满足动态扩展需求,从接口中筛选出可扩展接口,计算出可扩展接口的扩展系数,并从可扩展接口中筛选出目标接口,将xml文件导入应用程序的目标接口中,对xml文件进行解析处理;相对于现有技术,本发明可以对插件是否满足动态扩展需求进行初步判定,避免不合理的插件在动态扩展时出现扩展失败的现象,同时也防止插件动态扩展时影响应用程序的稳定运行,避免发生插件动态扩展时对应用程序的原始程序造成干扰的问题。

The present invention relates to the technical field of plug-in extension, and discloses a dynamic plug-in extension system and method based on XML-Pull; the system comprises the following steps: selecting plug-in features from basic information, constructing the plug-in features into an XML file, obtaining extended attributes of the XML file, determining whether dynamic extension requirements are met, selecting extensible interfaces from interfaces, calculating the extension coefficients of the extensible interfaces, selecting target interfaces from the extensible interfaces, importing the XML file into the target interface of an application, and parsing the XML file; compared with the prior art, the present invention can make a preliminary determination on whether a plug-in meets the dynamic extension requirements, avoid the phenomenon of unreasonable plug-ins failing to extend during dynamic extension, and also prevent the plug-in from affecting the stable operation of an application during dynamic extension, and avoid the problem of the plug-in causing interference to the original program of the application during dynamic extension.

Description

Dynamic plug-in expansion system and method based on xml-pull
Technical Field
The invention relates to the technical field of plug-in expansion, in particular to an xml-pull-based dynamic plug-in expansion system and method.
Background
The plug-in is an additional functional module added in the software or the application program and is used for expanding the functions of the software or the application program, so that a user can customize and enhance the functions of the software according to own requirements, the XML-pull is a lightweight library for analyzing XML and can read information content contained in the plug-in, and in order to ensure that the plug-in can be dynamically expanded with the application program, the expanded content of the plug-in needs to be read and analyzed by using the XML-pull.
The patent application with the reference of publication number CN118484244A discloses an extensible plugin system, a method, equipment and a storage medium, comprising an executable plugin determining module, a plugin registering and discovering module, a plugin loading and unloading module, a plugin period and service management module and a plugin service management module, wherein the executable plugin determining module is used for providing plugin standards, the plugin registering and discovering module is used for registering meta-information of the executable plugin;
When the existing dynamic expansion system expands the plug-in, the expansion information of the plug-in is directly obtained, and an expansion protocol is configured on the application program based on the expansion information, so that the expansion effect of the plug-in is realized, and as different plug-ins have different types of expansion information, when the extension information of the plug-in is incompatible with the extension environment of the application program, the rationality of the plug-in for extension can be greatly reduced, the phenomenon that dynamic extension cannot be completed when the subsequent plug-in and the application program are extended is easy to occur, and the phenomenon of negative interference to the original program of the application program is easy to occur.
In view of this, the present invention proposes an xml-pull based dynamic plug-in extension system and method to solve the above-mentioned problems.
Disclosure of Invention
In order to overcome the defects in the prior art and achieve the purposes, the invention provides the following technical scheme that the xml-pull-based dynamic plug-in extension system is applied to an extension platform and comprises the following steps:
The file construction module is used for extracting basic information of the plug-in, screening plug-in characteristics from the basic information, wherein the plug-in characteristics comprise dependency characteristics, compatibility characteristics, format characteristics and permission characteristics, and constructing the plug-in characteristics into xml files based on file construction criteria;
the demand judging module is used for acquiring the expansion attribute of the xml file, wherein the expansion attribute comprises a type magnitude and a form magnitude, calculating the demand coefficient of the xml file and judging whether the dynamic expansion demand is met;
The interface screening module is used for identifying attribute states of the application program interfaces one by one, wherein the attribute states comprise busy interfaces and idle interfaces, and the extensible interfaces are screened out from the interfaces according to the attribute states;
The coefficient calculation module is used for acquiring expansion parameters of the expandable interface, wherein the expansion parameters comprise concurrent request number, effective response time length and error occupation ratio, calculating the expansion coefficient of the expandable interface according to the expansion parameters, and screening a target interface from the expandable interface;
And the dynamic expansion module is used for importing the xml file into the application program through the target interface, analyzing the xml file based on the xml-pull analyzer and controlling the dynamic expansion of the plug-in.
Further, the method for screening the dependency, compatibility, format and permission features comprises the following steps:
inquiring the comprehensive information of the plug-in through an information management system, marking the identity remark frames of the comprehensive information one by one, and identifying remark words in the identity remark frames;
Marking an identity remark frame with remark words as plug-ins as a basic remark frame, and marking comprehensive information corresponding to the basic remark frame as basic information;
the key semantics of the basic information are identified one by one through a natural language processing technology, and the key semantics are split to obtain text semantics and digital semantics;
And respectively recording the key semantics of the text semantics as the dependency semantics, the compatibility semantics, the format semantics and the permission semantics, and combining the dependency semantics, the compatibility semantics, the format semantics and the permission semantics with the corresponding digital semantics end to generate the dependency characteristics, the compatibility characteristics, the format characteristics and the permission characteristics.
Further, the file construction criterion is that one feature bit only contains one plug-in feature;
The method for constructing the xml file comprises the following steps:
Constructing a blank basic file through a file construction tool, and sequentially drawing four character positions arranged in a straight line in the basic file;
sequentially numbering the four characteristic bits in an ascending order according to a front-to-back mode to obtain a first characteristic bit, a second characteristic bit, a third characteristic bit and a fourth characteristic bit;
Marking file association points at two ends of the first feature bit, the second feature bit, the third feature bit and the fourth feature bit respectively, and establishing association channels between two adjacent file association points;
And importing the dependent features, the compatible features, the format features and the permission features into the first feature bit, the second feature bit, the third feature bit and the fourth feature bit one by one to generate an xml file.
Further, the method for acquiring the type magnitude and the form magnitude comprises the following steps:
Inquiring i attribute information of an xml file through a technical parameter table, marking attribute words of the i attribute information one by one, and marking the attribute information of which the attribute words are in a type and a form as first information and second information respectively;
Inquiring the construction time of all the first information and the second information one by one through the time stamp, and arranging the construction time one by one according to the sequence of the time to generate a first arrangement row and a second arrangement row;
Marking first information with the same construction time in the first arrangement row as type information, and counting the number of the type information to obtain a type magnitude;
Recording second information which does not have the same construction time in the second arrangement row as form information, and counting the quantity of the form information to obtain a form magnitude;
The expression of the demand coefficient is: ;
in the formula, Is the demand coefficient of the xml file,Is the type magnitude of an xml file,Is the formal magnitude of the xml file.
Further, the method for judging whether the dynamic expansion requirement is met comprises the steps of integrating the requirement coefficient of the xml fileAnd a preset demand thresholdComparing;
When (when) Greater than or equal toWhen the dynamic expansion requirement is met, judging;
When (when) Less thanAnd when the dynamic expansion requirement is not met, judging.
Further, the method for identifying the busy interface and the idle interface comprises the following steps:
Inquiring the work logs of p interfaces of the application program one by one through a database, and marking state indication columns from the work logs to obtain p state indication columns;
identifying the potential values in the p state indication columns one by one, and counting the number of all the potential values to obtain p total value;
counting the number of potential values 0 in p state indication columns one by one to obtain p working low-level values;
When the working low-order value of the interface is more than or equal to two-thirds total value, the attribute state of the interface is recorded as an idle interface;
when the working low-order value of the interface is smaller than two-thirds total value, recording the attribute state of the interface as a busy interface;
The screening method of the extensible interface comprises the following steps:
When the attribute state of the interface is busy, the interface is not recorded as an extensible interface;
when the interface attribute of the interface is busy state, the interface is marked as an extensible interface to obtain And an extensible interface.
Further, the method for acquiring the effective response time length comprises the following steps:
respectively inquiring through a log management system Historical operation logs of the extensible interfaces are marked, and execution requests in the historical operation logs are marked to obtainExecuting the request;
One by one inquired out through time stamps Receiving time and executing time of each executing request, and recording time length from the receiving time to the executing time as sub-time length to obtainSub-duration;
Will be Averaging after accumulating sub-time length to obtainA valid response time period;
the expression of the effective response time length is: ;
in the formula, Is the firstThe effective response time of each expandable interface,Is the firstThe first expandable interfaceSub-time periods.
Further, the error occupancy ratio obtaining method includes:
Taking the current moment as a starting point, pushing forward a preset return period, and generating a request tracing period;
inquiring one by one through a system monitoring tool All the return requests of the extensible interfaces in the request tracing period are marked one by one to identify the state value in the state frame;
The status frame with the status value of 1 is marked as an error frame, the return request corresponding to the error frame is marked as an error request, and the number of the error requests is counted to obtain Error magnitude values;
Counting one by one The total amount of return requests of the extensible interfaces is obtainedRequest total value and willThe error values are sequentially combined withComparing the total values of the requests to obtainA personal error occupancy ratio;
the error ratio is expressed as: ;
in the formula, Is the firstThe error occupancy value of the one expandable interface,Is the firstThe error magnitude of one of the scalable interfaces,Is the firstA request total value of the extensible interfaces;
The expansion coefficient is expressed as: ;
in the formula, Is the firstThe expansion coefficients of the one expandable interface,Is the firstThe number of concurrent requests for an extensible interface,Is a weight factor greater than 0.
Further, the method for analyzing the xml file comprises the following steps:
switching the working state of the target interface to an on state, importing an xml file into the target interface of the application program, and switching the working state of the target interface to an off state;
Marking a first information bit and a last information bit in an xml file respectively, and marking the first information bit and the last information bit as an analysis starting point and an analysis end point;
And introducing an xml-pull parser into the application program, and reading and parsing the information in the xml file according to the sequence from the parsing start point to the parsing end point until the xml file is parsed.
The dynamic plug-in expansion method based on the xml-pull is applied to an expansion platform, and is realized based on the dynamic plug-in expansion system based on the xml-pull, and comprises the following steps:
S1, extracting basic information of a plugin, screening plugin characteristics from the basic information, wherein the plugin characteristics comprise dependency characteristics, compatibility characteristics, format characteristics and permission characteristics, and constructing the plugin characteristics into xml files based on file construction criteria;
s2, obtaining an extension attribute of the xml file, wherein the extension attribute comprises a type magnitude and a form magnitude, calculating a demand coefficient of the xml file, and judging whether the dynamic extension demand is met;
S3, if the dynamic expansion requirement is met, the attribute states of the application program interfaces are identified one by one, wherein the attribute states comprise busy interfaces and idle interfaces, and expandable interfaces are screened out from the interfaces according to the attribute states;
S4, obtaining expansion parameters of the expandable interface, wherein the expansion parameters comprise the concurrent request number, effective response time length and error occupation ratio, calculating expansion coefficients of the expandable interface according to the expansion parameters, and screening out target interfaces from the expandable interface;
s5, importing the xml file into the application program through the target interface, analyzing the xml file based on the xml-pull analyzer, and controlling the dynamic expansion of the plug-in.
The dynamic plug-in expansion system and the method based on xml-pull have the technical effects and advantages that:
The invention extracts basic information of the plug-in, screens out plug-in characteristics from the basic information, builds the plug-in characteristics into an xml file based on a file construction criterion, obtains the expansion attribute of the xml file, calculates the demand coefficient of the xml file, judges whether the dynamic expansion demand is met, identifies the attribute states of interfaces of the application program one by one, screens out expandable interfaces from the interfaces according to the attribute states, acquires expansion parameters of the expandable interfaces, calculates the expansion coefficient of the expandable interfaces according to the expansion parameters, screens out target interfaces from the expandable interfaces, guides the xml file into the application program through the target interfaces, analyzes the xml file based on an xml-pull analyzer, and controls the dynamic expansion of the plug-in.
Drawings
FIG. 1 is a schematic diagram of an architecture of an xml-pull-based dynamic plug-in extension system according to an embodiment of the present invention;
FIG. 2 is a schematic block diagram of an xml-pull-based dynamic plug-in extension system according to an embodiment of the present invention;
fig. 3 is a flow chart of an xml-pull-based dynamic plug-in extension method according to a second embodiment of the present invention;
fig. 4 is a schematic diagram of a structural schematic diagram of an electronic device according to a third embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
An embodiment one, referring to fig. 1 and 2, is an xml-pull-based dynamic plug-in extension system, applied to an extension platform, including:
The file construction module extracts basic information of the plug-in, screens out plug-in characteristics from the basic information, and constructs the plug-in characteristics into an xml file based on file construction criteria;
The basic information is comprehensive basic parameters of the plug-in capable of dynamically expanding with the application program, namely the plug-in which needs to be expanded with the application program can be specifically represented, so that a basis is provided for the dynamic expansion of the subsequent plug-in;
The plug-in feature is a feature capable of influencing whether dynamic expansion operation between the plug-in and the application program is successful or not, and is used as an object for constructing an xml file, and meanwhile, the related expansion feature of the plug-in can be accurately and simply represented;
The plug-in features comprise a dependence feature, a compatibility feature, a format feature and a permission feature, wherein the dependence feature refers to the dependence environment and the condition required by the plug-in during dynamic expansion, the compatibility feature refers to the platform and the version required by the plug-in during dynamic expansion, the format feature refers to the file type required by the plug-in during dynamic expansion, and the permission feature refers to the identity authority required by the plug-in during dynamic expansion;
the screening method of the dependency features, the compatibility features, the format features and the permission features comprises the following steps:
The comprehensive information of the plug-in is inquired through an information management system, an identity remark frame of the comprehensive information is marked one by one, remark words in the identity remark frame are identified, the comprehensive information is information capable of representing all contents of the plug-in, namely the plug-in can be comprehensively represented, the identity remark frame is used for summarizing and collecting contents of the type of the comprehensive information, and the remark words are words directly representing the type of the comprehensive information and are used for accurately distinguishing different types of the comprehensive information;
Marking an identity remark frame with remark words as plug-ins as a basic remark frame, and marking comprehensive information corresponding to the basic remark frame as basic information;
The key semantics of the basic information are identified one by one through a natural language processing technology, and the key semantics are split to obtain text semantics and digital semantics, wherein the key semantics are words used for directly and definitely representing the real meanings in the basic information, so that a concise and effective representation effect of the basic information is realized;
the key semantic meaning of the text semantic meaning as the dependency semantic meaning is recorded as the dependency semantic meaning, and the dependency semantic meaning is combined with the corresponding digital semantic meaning end to generate a dependency feature;
The key semantic meaning of the text semantic meaning being compatible is recorded as compatible semantic meaning, and the compatible semantic meaning is combined with the corresponding digital semantic meaning end to generate compatible features;
The key semantic meaning of the text semantic meaning of the format is recorded as the format semantic meaning, and the format semantic meaning is combined with the corresponding digital semantic meaning end to generate the format characteristic;
And recording the key semantics of which the literal semantics are the permissions as the permission semantics, and combining the permission semantics with the corresponding digital semantics in an end-to-end manner to generate permission features.
After the plug-in features are obtained, an xml file can be constructed according to the plug-in features, so that the xml file can be associated and fused with an application program and is an object for realizing dynamic expansion of the plug-in subsequently;
When the plug-in features are constructed into the xml file, the order and stability of a plurality of plug-in features in the constructed xml file are ensured, and the phenomenon of mutual interference and dislocation of the plug-in features in the xml file is prevented, so that the construction limitation of the xml file is required by means of a file construction rule;
the file construction criterion is that one feature bit only contains one plug-in feature, so that a plurality of plug-ins in an xml file are in mutually independent states, the front-back adhesion of the plug-in features in adjacent feature bits is avoided, and the stability of the xml file is improved;
The method for constructing the xml file comprises the following steps:
the method comprises the steps of constructing a blank basic file through a file construction tool, and sequentially drawing four character positions arranged in a straight line in the basic file, wherein the basic file is a blank file without substantial contents and is used as a construction basis of a subsequent xml file, and the character positions are the smallest units forming the basic file and are used for providing accurate imported positions for data in the xml file;
sequentially numbering the four characteristic bits in an ascending order according to a front-to-back mode to obtain a first characteristic bit, a second characteristic bit, a third characteristic bit and a fourth characteristic bit;
Marking file association points at two ends of a first feature bit, a second feature bit, a third feature bit and a fourth feature bit respectively, and establishing association channels between two adjacent file association points, wherein the file association points are output points and input points used for information interaction on the feature bit, and the association channels are information interaction channels constructed on the file association points between the two adjacent feature bits, so that information on the two adjacent feature bits can be associated with each other, and information in the feature bits in an xml file can have comprehensive and accurate association representation effect on the plugin;
And importing the dependent features, the compatible features, the format features and the permission features into the first feature bit, the second feature bit, the third feature bit and the fourth feature bit one by one to generate an xml file.
It should be noted that only one plug-in feature is included in one feature bit, so that one xml file can orderly and independently represent features affecting dynamic expansion of a plug-in, and plug-in features in two adjacent feature bits can be associated through an association channel, so that an association transmission effect among a plurality of plug-in features is ensured, and the integrity of the plug-in is ensured.
The demand judging module is used for acquiring the expansion attribute of the xml file, calculating the demand coefficient of the xml file and judging whether the dynamic expansion demand is met or not;
The extension attribute is a judging basis for judging whether the follow-up dynamic extension operation can be carried out on the xml file, and meanwhile, the extension attribute can accurately represent the type and form of the xml file and provide a basis for the follow-up identification and analysis of the xml file;
The type quantity value is used for representing the number of the expansion types of the xml file, and the form quantity value is used for representing the number of the dynamic expansion requirements of different forms in the xml file, and the form quantity value is used for representing the number of the expansion forms of the xml file;
the method for acquiring the type magnitude and the form magnitude comprises the following steps:
Inquiring i attribute information of the xml file through a technical parameter table, marking attribute words of the i attribute information one by one, and marking the attribute information of which the attribute words are in types and forms as first information and second information respectively;
Inquiring the construction time of all the first information and the second information one by one through the time stamp, and arranging the construction time one by one according to the sequence of the time to generate a first arrangement row and a second arrangement row;
Marking first information with the same construction time in the first arrangement row as type information, and counting the number of the type information to obtain a type magnitude;
And recording the second information which does not have the same construction time in the second arrangement row as form information, and counting the quantity of the form information to obtain a form magnitude.
The demand coefficient is used for representing the rationality of the dynamic expansion of the xml file and the application program and is used as a judging basis for judging whether the follow-up dynamic expansion demand of the xml file is met or not;
The expression of the demand coefficient is: ;
in the formula, Is the demand coefficient of the xml file,Is the type magnitude of an xml file,Is the formal magnitude of the xml file.
The dynamic expansion requirement is used for representing whether the xml file meets the basic dynamic expansion requirement of the application program or not, namely, the rationality of the xml file can be verified, so that the dynamic expansion requirement of the plug-in can be negated when the xml file lacks basic rationality, and the unreasonable dynamic expansion requirement of the plug-in is prevented from negatively affecting the stability of the application program;
the method for judging whether the dynamic expansion requirement is met comprises the following steps:
demand coefficient of xml file And a preset demand thresholdThe preset demand threshold value is used for effectively and accurately distinguishing the demand coefficient of the xml file by representing the maximum value of the demand coefficient of the xml file, wherein the rationality of dynamic expansion of the xml file is not in a specified range, and the dynamic expansion demand of the xml file is not in a normal range, so as to provide a judgment basis for whether the dynamic expansion operation is executed subsequently;
When (when) Greater than or equal toWhen the demand coefficient of the xml file is larger than or equal to a preset demand threshold, the reasonability of dynamic expansion of the xml file is within a specified range, and the dynamic expansion demand of the xml file does not exceed a normal range, so that the dynamic expansion demand is judged to be met;
When (when) Less thanWhen the demand coefficient of the xml file is smaller than the preset demand threshold, the reasonability of dynamic expansion of the xml file is not in the specified range, and the dynamic expansion demand of the xml file exceeds the normal range, so that the dynamic expansion demand is judged not to be met.
The interface screening module identifies attribute states of the application program interfaces one by one, and screens extensible interfaces from the interfaces according to the attribute states;
The attribute state is used for representing information of the expansion interfaces of the application programs, so that the meaning and the information of the interfaces of each application program are represented in a concise manner, and the attribute state is used for effectively identifying different use requirements of the interfaces of the application programs;
the attribute state comprises a busy interface and an idle interface, wherein the busy interface refers to the busy working state of the expansion interface of the application program, has no effect of dynamic expansion, and the idle interface refers to the idle working state of the expansion interface of the application program, has the effect of dynamic expansion;
the method for identifying the busy interface and the idle interface comprises the following steps:
The method comprises the steps of inquiring working logs of p interfaces of an application program one by one through a database, and marking state indication columns from the working logs to obtain p state indication columns, wherein the working logs are used for integrally representing the running condition of the interfaces in a historical time period, and the state indication columns are used for directly representing the working states of the interfaces;
The method comprises the steps of identifying potential values in p state indication columns one by one, counting the number of all the potential values to obtain p total value values, wherein the potential values are numerical representations for indicating whether the interface is in an operating state or an inactive state, and the potential values comprise 1 and 0;
counting the number of potential values 0 in p state indication columns one by one to obtain p working low-level values;
When the working low-order value of the interface is more than or equal to two-thirds total value, the number of the potential values in the state indication column is more than 0, the period of time when the interface is in an idle state is longer, and the attribute state of the interface is recorded as an idle interface;
When the working low-order value of the interface is smaller than the two-thirds total value, the number of the potential values in the state indication column is smaller, the period of the interface in the idle state is shorter, and the attribute state of the interface is recorded as a busy interface.
After the attribute state of the application program interface is identified, the interface meeting the dynamic expansion requirement can be effectively identified according to the different attribute states of each interface, and an expandable interface is obtained, so that the expandable interface can be used as an alternative interface for dynamic expansion of a subsequent approach plugin;
The screening method of the extensible interface comprises the following steps:
When the attribute state of the interface is a busy state, the interface of the application program is always in the busy state, the interface can not provide sufficient and stable import expansion requirements for the dynamic expansion of the plug-in, and the interface is not recorded as an expandable interface;
When the interface attribute of the interface is busy state, the interface of the application program is not always busy state, the interface can provide sufficient and stable import expansion requirement for dynamic expansion of the plug-in, and the interface is recorded as an expandable interface to obtain And an extensible interface.
It should be noted that, the expandable interfaces are only used to represent interfaces that meet the dynamic expansion requirement of the plug-in, where the number of expandable interfaces is generally greater than 1, which indicates that the number of expandable interfaces that meet the dynamic expansion requirement of the plug-in is greater, and in order to better screen out the best interface from the expandable interfaces, further analysis and screening processes need to be performed on multiple expandable interfaces.
The coefficient calculation module is used for obtaining expansion parameters of the expandable interface, calculating the expansion coefficients of the expandable interface according to the expansion parameters, and screening out a target interface from the expandable interface;
The expansion parameters are performance change data which can influence the expandable interface when the dynamic expansion of the plug-in unit is satisfied, and the performance strength of the expandable interface when the dynamic expansion of the plug-in unit is satisfied can be represented, so that the expandable interface is used as a screening basis for the expandable interface with the strongest performance in the follow-up process;
the expansion parameters comprise the number of concurrent requests, effective response time length and error occupation ratio;
The concurrent request number refers to the maximum value of the request number which can be received and processed by the extensible interface at the same time when the extensible interface runs under load, namely the request number which can be simultaneously processed by the extensible interface can be expressed, when the concurrent request number is larger, the maximum value of the request number which can be received and processed by the extensible interface at the same time when the extensible interface runs under load is larger, and when the performance of dynamic expansion of the extensible interface plug-in is stronger, the expansion coefficient is larger;
The effective response time length is the time length between the receiving of the request and the executing of the request when the extensible interface is in load operation, namely the processing timeliness of the request can be expressed by the extensible interface, when the effective response time length is larger, the time length between the receiving of the request and the executing of the request when the extensible interface is in load operation is larger, and when the performance of the extensible interface for dynamically expanding the plug-in is weaker, the expansion coefficient is smaller;
the method for acquiring the effective response time length comprises the following steps:
respectively inquiring through a log management system Historical operation logs of the extensible interfaces are marked, and execution requests in the historical operation logs are marked to obtainExecuting the request;
One by one inquired out through time stamps Receiving time and executing time of each executing request, and recording time length from the receiving time to the executing time as sub-time length to obtainSub-duration;
Will be Averaging after accumulating sub-time length to obtainA valid response time period;
the expression of the effective response time length is: ;
in the formula, Is the firstThe effective response time of each expandable interface,Is the firstThe first expandable interfaceSub-time periods.
The error occupation ratio is the occupation ratio between the number of the returned error requests and the total number of the returned error requests in the unit time of the load operation of the extensible interface, so that the processing correctness of the requests can be expressed by the extensible interface;
the error occupation ratio acquisition method comprises the following steps:
The method comprises the steps of taking the current moment as a starting point, and pushing forward a preset return period to generate a request tracing period, wherein the preset return period is a limit of the maximum duration for tracing the return request, so that the inquiry and the record of the related data of the return request in a reasonable duration range can be ensured;
inquiring one by one through a system monitoring tool The method comprises the steps that all return requests of a plurality of extensible interfaces are in a request tracing period, all state frames of the return requests are marked one by one, and state values in the state frames are identified, wherein the state frames are used for remarking sets of specific types of the return requests, and the state values are numerical representations of the specific types of the return requests;
The status frame with the status value of 1 is marked as an error frame, the return request corresponding to the error frame is marked as an error request, and the number of the error requests is counted to obtain Error magnitude values;
Counting one by one The total amount of return requests of the extensible interfaces is obtainedRequest total value and willThe error values are sequentially combined withComparing the total values of the requests to obtainA personal error occupancy ratio;
the error ratio is expressed as: ;
in the formula, Is the firstThe error occupancy value of the one expandable interface,Is the firstThe error magnitude of one of the scalable interfaces,Is the firstThe total value of the requests for the extensible interfaces.
After the concurrent request number, the effective response time length and the error occupation ratio are obtained, an expansion coefficient can be calculated according to the concurrent request number, the effective response time length and the error occupation ratio, so that the expansion coefficient can be used as a judging basis for screening a target interface;
The expansion coefficient is expressed as: ;
in the formula, Is the firstThe expansion coefficients of the one expandable interface,Is the firstThe number of concurrent requests for an extensible interface,A weight factor greater than 0;
Wherein, The dimensions of the exemplary,At the level of 0.43 of the total number of the components,The total number of the components is 0.35,The total number of the components was 0.22,The setting is to balance the ratio of the concurrent request number, the effective response time length and the error ratio in the expansion coefficient, so as to ensure that the expansion coefficient can keep a dynamic balance effect with the concurrent request number, the effective response time length and the error ratio.
After the expansion coefficient is calculated, the dynamic expansion performance intensity of the expandable interface can be expressed according to the size of the expansion coefficient, so that the expandable interface with the strongest dynamic expansion performance is screened out according to the size of the expansion coefficient to be used as a target interface for subsequent use, and therefore the expandable interface corresponding to the maximum value of the expansion coefficient can be recorded as the target interface.
The dynamic expansion module is used for importing the xml file into the application program through the target interface, analyzing the xml file based on the xml-pull analyzer and controlling the plug-in to dynamically expand;
After the target interface is obtained, the target interface can be used as an interface for guiding an xml file and an application program into the dynamic expansion, and before the dynamic expansion of the xml file, the constructed xml file is required to be analyzed, so that the application program can directly and accurately obtain the expansion requirement of the plug-in unit, and a guarantee is provided for the dynamic expansion of the subsequent plug-in unit;
the method for analyzing the xml file comprises the following steps:
The method comprises the steps of switching the working state of a target interface into an opening state, importing an xml file into the target interface of an application program, and switching the working state of the target interface into a closing state, wherein the working state refers to the running state of the target interface capable of importing the xml file, so that the opening and closing conditions of the target interface are represented;
Marking a first information bit and a last information bit in an xml file respectively, and marking the first information bit and the last information bit as an analysis starting point and an analysis end point;
And introducing an xml-pull parser into the application program, and reading and parsing the information in the xml file according to the sequence from the parsing start point to the parsing end point until the xml file is parsed.
After the xml file is analyzed, the analyzed xml file can be dynamically expanded in the application program, so that the target interface of the application program can be effectively connected with the plug-in unit and dynamically expanded;
When the plug-in is dynamically expanded, the dynamic expansion process between the plug-in and the application program is required to be effectively controlled, so that an expansion protocol with the same mechanism is required to be configured between the application program and the plug-in, the application program and the plug-in can realize the dynamic expansion effect of the plug-in by adopting a reflection dynamic loading plug-in mode under the limitation of the expansion protocol, the application program can be ensured to keep dynamic balance when the plug-in is dynamically expanded, the stable operation of the application program is prevented from being influenced when the plug-in is dynamically expanded, and meanwhile, the interference to the original program of the application program is avoided when the plug-in is dynamically expanded.
In the embodiment, the basic information of the plug-in is extracted, the plug-in characteristics are screened out from the basic information, the plug-in characteristics are constructed into the xml file based on the file construction criterion, the expansion attribute of the xml file is acquired, the demand coefficient of the xml file is calculated, whether the dynamic expansion demand is met or not is judged, the attribute states of the interfaces of the application program are identified one by one, the expandable interfaces are screened out from the interfaces according to the attribute states, the expansion parameters of the expandable interfaces are acquired, the expansion coefficient of the expandable interfaces is calculated according to the expansion parameters, the target interfaces are screened out from the expandable interfaces, the xml file is imported into the application program through the target interfaces, the xml file is analyzed based on the xml-pull analyzer, and the dynamic expansion of the plug-in is controlled.
Referring to fig. 3, the embodiment is not described in detail, but in part, the description of embodiment one is provided, and an xml-pull-based dynamic plug-in extension method is applied to an extension platform, and implemented by an xml-pull-based dynamic plug-in extension system, and includes:
S1, extracting basic information of a plugin, screening plugin characteristics from the basic information, wherein the plugin characteristics comprise dependency characteristics, compatibility characteristics, format characteristics and permission characteristics, and constructing the plugin characteristics into xml files based on file construction criteria;
s2, obtaining an extension attribute of the xml file, wherein the extension attribute comprises a type magnitude and a form magnitude, calculating a demand coefficient of the xml file, and judging whether the dynamic extension demand is met;
S3, if the dynamic expansion requirement is met, the attribute states of the application program interfaces are identified one by one, wherein the attribute states comprise busy interfaces and idle interfaces, and expandable interfaces are screened out from the interfaces according to the attribute states;
S4, obtaining expansion parameters of the expandable interface, wherein the expansion parameters comprise the concurrent request number, effective response time length and error occupation ratio, calculating expansion coefficients of the expandable interface according to the expansion parameters, and screening out target interfaces from the expandable interface;
s5, importing the xml file into the application program through the target interface, analyzing the xml file based on the xml-pull analyzer, and controlling the dynamic expansion of the plug-in.
Referring to fig. 4, the disclosure of the present embodiment provides an electronic device, including a processor and a memory;
wherein the memory stores a computer program for the processor to call;
And the processor executes the dynamic plug-in expansion method based on xml-pull by calling the computer program stored in the memory.
Since the electronic device described in this embodiment is an electronic device used to implement the dynamic plug-in extension method based on xml-pull in the second embodiment of the present application, based on the dynamic plug-in extension method based on xml-pull described in the embodiment of the present application, those skilled in the art can understand the specific implementation of the electronic device and various modifications thereof, so how to implement the method in the embodiment of the present application for this electronic device will not be described in detail herein. As long as the electronic equipment adopted by the person skilled in the art to implement the dynamic plug-in extension method based on xml-pull in the embodiment of the application belongs to the scope of the application to be protected.
The foregoing is merely illustrative of the present invention, and the present invention is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within the scope of the present invention.

Claims (10)

1.基于xml-pull的动态插件扩展系统,应用于扩展平台,其特征在于,包括:1. A dynamic plug-in extension system based on xml-pull, applied to the extension platform, characterized by including: 文件构建模块,用于提取出插件的基础信息,从基础信息中筛选出插件特征,插件特征包括依赖特征、兼容特征、格式特征和许可特征,并基于文件构建准则,将插件特征构建成xml文件;A file construction module is used to extract basic information of the plug-in, filter out plug-in features from the basic information, the plug-in features include dependency features, compatibility features, format features and license features, and construct the plug-in features into an XML file based on the file construction criteria; 需求判定模块,用于获取xml文件的扩展属性,扩展属性包括类型量值和形式量值,计算出xml文件的需求系数,并判定是否满足动态扩展需求;The demand determination module is used to obtain the extended attributes of the XML file, the extended attributes include type value and form value, calculate the demand coefficient of the XML file, and determine whether the dynamic expansion demand is met; 接口筛选模块,用于逐一识别出应用程序接口的属性状态,属性状态包括忙碌接口和空闲接口,并根据属性状态,从接口中筛选出可扩展接口;The interface screening module is used to identify the attribute status of the application program interface one by one, the attribute status includes busy interface and idle interface, and screen out the extensible interface from the interface according to the attribute status; 系数计算模块,用于获取可扩展接口的扩展参数,扩展参数包括并发请求数、有效响应时长和错误占比值,根据扩展参数,计算出可扩展接口的扩展系数,并从可扩展接口中筛选出目标接口;The coefficient calculation module is used to obtain the extended parameters of the extensible interface, which include the number of concurrent requests, the effective response time and the error ratio. According to the extended parameters, the expansion coefficient of the extensible interface is calculated, and the target interface is selected from the extensible interface. 动态扩展模块,用于通过目标接口将xml文件导入应用程序中,基于xml-pull解析器对xml文件进行解析,并控制插件动态扩展。The dynamic extension module is used to import XML files into the application through the target interface, parse the XML files based on the XML-pull parser, and control the dynamic extension of the plug-in. 2.根据权利要求1所述的基于xml-pull的动态插件扩展系统,其特征在于,依赖特征、兼容特征、格式特征和许可特征的筛选方法包括:2. The dynamic plug-in extension system based on XML-Pull according to claim 1, characterized in that the screening method of dependency features, compatibility features, format features and permission features comprises: 通过信息管理系统查询出插件的综合信息,逐一标记出综合信息的身份备注框,并识别出身份备注框内的备注词;Query the comprehensive information of the plug-in through the information management system, mark the identity remark boxes of the comprehensive information one by one, and identify the remark words in the identity remark boxes; 将备注词为插件的身份备注框记为基础备注框,并将基础备注框对应的综合信息记为基础信息;The identity remark box with the remark word "plugin" is recorded as the basic remark box, and the comprehensive information corresponding to the basic remark box is recorded as the basic information; 通过自然语言处理技术逐一识别出基础信息的关键语义,并将关键语义进行拆分,获得文字语义和数字语义;Through natural language processing technology, the key semantics of basic information are identified one by one, and the key semantics are split to obtain text semantics and digital semantics; 将文字语义为依赖、兼容、格式和许可的关键语义分别记为依赖语义、兼容语义、格式语义和许可语义,并将依赖语义、兼容语义、格式语义和许可语义与对应的数字语义首尾组合,生成依赖特征、兼容特征、格式特征和许可特征。The key semantics with textual semantics of dependency, compatibility, format and permission are recorded as dependency semantics, compatibility semantics, format semantics and permission semantics respectively, and the dependency semantics, compatibility semantics, format semantics and permission semantics are combined with the corresponding digital semantics head and tail to generate dependency features, compatibility features, format features and permission features. 3.根据权利要求2所述的基于xml-pull的动态插件扩展系统,其特征在于,文件构建准则为:一个特征位内只包含一个插件特征;3. The xml-pull-based dynamic plug-in extension system according to claim 2, characterized in that the file construction criterion is: a feature bit contains only one plug-in feature; xml文件的构建方法包括:The construction methods of xml files include: 通过文件构建工具构建出空白的基础文件,并在基础文件内依次绘制出四个一字形排列的特征位;A blank basic file is constructed by using a file construction tool, and four feature bits arranged in a straight line are sequentially drawn in the basic file; 按照从前往后的方式,依次对四个特征位升序编号,获得第一特征位、第二特征位、第三特征位和第四特征位;In a manner from front to back, the four characteristic bits are numbered in ascending order to obtain a first characteristic bit, a second characteristic bit, a third characteristic bit and a fourth characteristic bit; 分别在第一特征位、第二特征位、第三特征位和第四特征位的两端标记出文件关联点,并在相邻两个文件关联点之间建立关联通道;Marking file association points at both ends of the first feature bit, the second feature bit, the third feature bit and the fourth feature bit respectively, and establishing an association channel between two adjacent file association points; 将依赖特征、兼容特征、格式特征和许可特征逐一导入到第一特征位、第二特征位、第三特征位和第四特征位内,生成xml文件。The dependent features, compatible features, format features and permission features are imported into the first feature bit, the second feature bit, the third feature bit and the fourth feature bit one by one to generate an XML file. 4.根据权利要求3所述的基于xml-pull的动态插件扩展系统,其特征在于,类型量值和形式量值的获取方法包括:4. The dynamic plug-in extension system based on xml-pull according to claim 3, characterized in that the method for obtaining the type value and the form value comprises: 通过技术参数表查询出xml文件的i个属性信息,并逐一标记出i个属性信息的属性字,将属性字为类型和形式的属性信息分别记为第一信息和第二信息;Query i attribute information of the XML file through the technical parameter table, and mark the attribute words of the i attribute information one by one, and record the attribute information whose attribute words are type and form as first information and second information respectively; 通过时间戳逐一查询出所有的第一信息和第二信息的构建时间,并按照时间的先后顺序将构建时间逐一排列,生成第一排列行和第二排列行;The construction time of all the first information and the second information is queried one by one through the timestamp, and the construction time is arranged one by one in the order of time to generate the first arrangement row and the second arrangement row; 将第一排列行内具有相同构建时间的第一信息记为类型信息,并统计出类型信息的数量,获得类型量值;The first information with the same construction time in the first arrangement row is recorded as type information, and the number of type information is counted to obtain the type value; 将第二排列行内没有相同构建时间的第二信息记为形式信息,并统计出形式信息的数量,获得形式量值;Record the second information without the same construction time in the second arrangement row as form information, and count the number of form information to obtain the form value; 需求系数的表达式为:The expression of demand coefficient is: ; 式中,为xml文件的需求系数,为xml文件的类型量值,为xml文件的形式量值。In the formula, is the demand coefficient of the xml file, The type value of the XML file. It is a value in the form of an XML file. 5.根据权利要求4所述的基于xml-pull的动态插件扩展系统,其特征在于,是否满足动态扩展需求的判定方法包括:5. The xml-pull-based dynamic plug-in expansion system according to claim 4, characterized in that the method for determining whether the dynamic expansion requirement is met comprises: 将xml文件的需求系数与预设的需求阈值比较;The requirement coefficient of the xml file With the preset demand threshold Compare; 大于等于时,判定满足动态扩展需求;when Greater than or equal to When , it is determined that the dynamic expansion requirements are met; 小于时,判定不满足动态扩展需求。when Less than , it is determined that the dynamic expansion requirement is not met. 6.根据权利要求5所述的基于xml-pull的动态插件扩展系统,其特征在于,忙碌接口和空闲接口的识别方法包括:6. The xml-pull-based dynamic plug-in extension system according to claim 5, wherein the method for identifying busy interfaces and idle interfaces comprises: 通过数据库逐一查询出应用程序p个接口的工作日志,并从工作日志中标记出状态指示栏,获得p个状态指示栏;Query the work logs of the p interfaces of the application program one by one through the database, and mark the status indicator columns from the work logs to obtain p status indicator columns; 逐一识别出p个状态指示栏内的电位值,并统计出所有电位值的数量,获得p个总量值;Identify the potential values in the p status indicator columns one by one, and count the number of all potential values to obtain p total values; 逐一统计出p个状态指示栏内电位值为0的数量,获得p个工作低位值;Count the number of potential values 0 in p status indicator columns one by one to obtain p working low-level values; 当接口的工作低位值大于等于三分之二总量值时,将接口的属性状态记为空闲接口;When the working low value of the interface is greater than or equal to two-thirds of the total value, the attribute state of the interface is recorded as an idle interface; 当接口的工作低位值小于三分之二总量值时,将接口的属性状态记为忙碌接口;When the working low value of the interface is less than two-thirds of the total value, the attribute state of the interface is recorded as a busy interface; 可扩展接口的筛选方法包括:The screening methods of the extensible interface include: 当接口的属性状态为忙碌状态时,不将接口记为可扩展接口;When the attribute status of the interface is busy, the interface is not recorded as an extensible interface; 当接口的接口属性为忙碌状态时,将接口记为可扩展接口,获得个可扩展接口。When the interface attribute of the interface is busy, the interface is recorded as an extensible interface. An extensible interface. 7.根据权利要求6所述的基于xml-pull的动态插件扩展系统,其特征在于,有效响应时长的获取方法包括:7. The xml-pull-based dynamic plug-in extension system according to claim 6, wherein the method for obtaining the effective response duration comprises: 通过日志管理系统分别查询出个可扩展接口的历史运行日志,并标记出历史运行日志中的执行请求,获得个执行请求;Through the log management system, we can query The historical operation log of an extensible interface is obtained by marking the execution request in the historical operation log. Execute requests; 通过时间戳逐一查询出个执行请求的接收时刻和执行时刻,并将接收时刻至执行时刻之间的时长记为子时长,获得个子时长;Query one by one by timestamp The receiving time and execution time of the execution request are recorded as the sub-duration, and the Length of time; 个子时长累加后求平均,获得个有效响应时长;Will After accumulating the duration of each sub-item, we find the average value and get Effective response time; 有效响应时长的表达式为:The expression of effective response time is: ; 式中,为第个可扩展接口的有效响应时长,为第个可扩展接口的第个子时长。In the formula, For the The effective response time of an extensible interface, For the The first extensible interface The length of the child. 8.根据权利要求7所述的基于xml-pull的动态插件扩展系统,其特征在于,错误占比值的获取方法包括:8. The xml-pull-based dynamic plug-in expansion system according to claim 7, wherein the method for obtaining the error ratio value comprises: 以当前时刻为起始点,并向前倒推一个预设的返回周期,生成请求追溯时段;Take the current time as the starting point and work backwards for a preset return cycle to generate a request tracing period; 通过系统监控工具逐一查询出个可扩展接口在请求追溯时段内所有的返回请求,并逐一标记出所有的返回请求的状态框,识别出状态框内的状态值;Use system monitoring tools to query one by one An extensible interface collects all return requests within the request tracing period, marks the status boxes of all return requests one by one, and identifies the status values in the status boxes; 将状态值为1的状态框记为错误框,将错误框对应的返回请求记为错误请求,并统计出错误请求的数量,获得个错误量值;The status box with a status value of 1 is recorded as an error box, the return request corresponding to the error box is recorded as an error request, and the number of error requests is counted to obtain Error value; 逐一统计出个可扩展接口的返回请求的总量,获得个请求总值,并将个错误量值依次与个请求总值比较,获得个错误占比值;Count one by one The total number of requests returned by the extensible interface, The total value of the request, and The error values are Compare the total value of requests and get The error percentage value; 错误占比值的表达式为:The expression of error ratio is: ; 式中,为第个可扩展接口的错误占比值,为第个可扩展接口的错误量值,为第个可扩展接口的请求总值;In the formula, For the The error ratio of the extensible interface, For the The error value of the extensible interface, For the The total value of requests for extensible interfaces; 扩展系数的表达式为:The expression of the expansion factor is: ; 式中,为第个可扩展接口的扩展系数,为第个可扩展接口的并发请求数,为大于0的权重因子。In the formula, For the The expansion factor of the extensible interface, For the The number of concurrent requests for the extensible interface, is a weight factor greater than 0. 9.根据权利要求8所述的基于xml-pull的动态插件扩展系统,其特征在于,xml文件的解析方法包括:9. The dynamic plug-in expansion system based on xml-pull according to claim 8, characterized in that the parsing method of the xml file comprises: 将目标接口的工作状态切换为开启状态,将xml文件导入应用程序的目标接口中,并将目标接口的工作状态切换为关闭状态;Switch the working state of the target interface to the on state, import the XML file into the target interface of the application, and switch the working state of the target interface to the off state; 在xml文件中分别标记出第一个信息位和最后一个信息位,记为解析起点和解析终点;Mark the first and last information bits in the XML file as the parsing start and end points; 在应用程序中引入 xml-pull解析器,并按照从解析起点至解析终点的顺序,读取并解析xml文件内的信息,直至xml文件被解析完。Introduce the xml-pull parser into the application, and read and parse the information in the xml file in the order from the parsing start point to the parsing end point until the xml file is parsed. 10.基于xml-pull的动态插件扩展方法,应用于扩展平台,基于权利要求1-9中任一项所述的基于xml-pull的动态插件扩展系统实现,其特征在于,包括:10. A dynamic plug-in extension method based on xml-pull, applied to an extension platform, implemented based on a dynamic plug-in extension system based on xml-pull according to any one of claims 1 to 9, characterized in that it comprises: S1:提取出插件的基础信息,从基础信息中筛选出插件特征,插件特征包括依赖特征、兼容特征、格式特征和许可特征,并基于文件构建准则,将插件特征构建成xml文件;S1: extract the basic information of the plug-in, filter out the plug-in features from the basic information, the plug-in features include dependency features, compatibility features, format features and license features, and construct the plug-in features into an XML file based on the file construction criteria; S2:获取xml文件的扩展属性,扩展属性包括类型量值和形式量值,计算出xml文件的需求系数,并判定是否满足动态扩展需求;S2: Obtain the extended attributes of the XML file, which include type value and form value, calculate the demand coefficient of the XML file, and determine whether the dynamic expansion demand is met; S3:若满足动态扩展需求,逐一识别出应用程序接口的属性状态,属性状态包括忙碌接口和空闲接口,并根据属性状态,从接口中筛选出可扩展接口;S3: If the dynamic expansion requirements are met, the attribute status of the application program interface is identified one by one, the attribute status includes busy interface and idle interface, and the extensible interface is selected from the interface according to the attribute status; S4:获取可扩展接口的扩展参数,扩展参数包括并发请求数、有效响应时长和错误占比值,根据扩展参数,计算出可扩展接口的扩展系数,并从可扩展接口中筛选出目标接口;S4: Obtain extended parameters of the extensible interface, which include the number of concurrent requests, effective response time, and error ratio. According to the extended parameters, calculate the expansion coefficient of the extensible interface, and select the target interface from the extensible interface. S5:通过目标接口将xml文件导入应用程序中,基于xml-pull解析器对xml文件进行解析,并控制插件动态扩展。S5: Import the XML file into the application through the target interface, parse the XML file based on the XML-pull parser, and control the dynamic expansion of the plug-in.
CN202411648231.3A 2024-11-19 2024-11-19 Dynamic plug-in expansion system and method based on xml-pull Active CN119149138B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202411648231.3A CN119149138B (en) 2024-11-19 2024-11-19 Dynamic plug-in expansion system and method based on xml-pull

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202411648231.3A CN119149138B (en) 2024-11-19 2024-11-19 Dynamic plug-in expansion system and method based on xml-pull

Publications (2)

Publication Number Publication Date
CN119149138A true CN119149138A (en) 2024-12-17
CN119149138B CN119149138B (en) 2025-03-18

Family

ID=93805700

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202411648231.3A Active CN119149138B (en) 2024-11-19 2024-11-19 Dynamic plug-in expansion system and method based on xml-pull

Country Status (1)

Country Link
CN (1) CN119149138B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1968154A (en) * 2006-09-15 2007-05-23 华为技术有限公司 System and method for service expansion using plug
US20070156913A1 (en) * 2005-12-30 2007-07-05 Hiroyuki Miyamoto Method for enabling extension points through plug-ins
CN112445497A (en) * 2020-11-25 2021-03-05 中国电子科技集团公司第五十四研究所 Remote sensing image processing system based on plug-in extensible architecture
CN116804980A (en) * 2023-06-25 2023-09-26 软安科技有限公司 Binary component retrieval method and device
CN118133094A (en) * 2024-05-08 2024-06-04 信通院(江西)科技创新研究院有限公司 Digital economic measurement and investigation system display platform
CN118484244A (en) * 2024-06-05 2024-08-13 浪潮云信息技术股份公司 Extensible plug-in system, method, equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070156913A1 (en) * 2005-12-30 2007-07-05 Hiroyuki Miyamoto Method for enabling extension points through plug-ins
CN1968154A (en) * 2006-09-15 2007-05-23 华为技术有限公司 System and method for service expansion using plug
CN112445497A (en) * 2020-11-25 2021-03-05 中国电子科技集团公司第五十四研究所 Remote sensing image processing system based on plug-in extensible architecture
CN116804980A (en) * 2023-06-25 2023-09-26 软安科技有限公司 Binary component retrieval method and device
CN118133094A (en) * 2024-05-08 2024-06-04 信通院(江西)科技创新研究院有限公司 Digital economic measurement and investigation system display platform
CN118484244A (en) * 2024-06-05 2024-08-13 浪潮云信息技术股份公司 Extensible plug-in system, method, equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张小龙;霍剑青;袁泉;王晓蒲;: "基于软件插件的虚拟实验资源库系统的构建", 中国科学技术大学学报, no. 03, 30 March 2007 (2007-03-30) *

Also Published As

Publication number Publication date
CN119149138B (en) 2025-03-18

Similar Documents

Publication Publication Date Title
CN100565499C (en) Composing system and composition method
US20100153431A1 (en) Alert triggered statistics collections
US20100333172A1 (en) Method, apparatus and system for monitoring database security
CN110569214A (en) Index construction method and device for log file and electronic equipment
CN102043863B (en) A Web Service Clustering Method
CN102063449A (en) Method and device for improving reliability of statistic information of data object in database
CN101430714A (en) Content structuring process method and system based on model
CN111581057A (en) General log analysis method, terminal device and storage medium
WO2025123746A1 (en) In-vehicle infotainment log recording method and system, and vehicle
CN115310407B (en) Excel model analysis method and system
CN119149138B (en) Dynamic plug-in expansion system and method based on xml-pull
CN112965912B (en) Interface test case generation method and device and electronic equipment
CN118656395A (en) A query processing method, device, equipment and readable storage medium
CN114201941A (en) Chip performance verification method and device, electronic equipment and storage medium
WO2025129888A1 (en) Document information extraction method and device, and storage medium
CN118535421A (en) Business call process optimization method and device based on log retrieval
US20130124484A1 (en) Persistent flow apparatus to transform metrics packages received from wireless devices into a data store suitable for mobile communication network analysis by visualization
CN116010047B (en) Thread scheduling method, hardware circuit and electronic equipment
CN116974460A (en) Performance statistics method, device, equipment and storage medium
CN113806159A (en) Data processing method and device, electronic equipment and readable storage medium
CN119415973B (en) Data processing method, device, product and equipment
CN114818612B (en) A method for processing report code based on structured data and related equipment
CN117176507B (en) Data analysis method, device, electronic equipment and storage medium
CN114911676A (en) CPK data statistical method, system and computer readable medium
CN116821099A (en) A database optimization method, device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant