CN105511909B - Handle the method and device of plug-in unit - Google Patents

Handle the method and device of plug-in unit Download PDF

Info

Publication number
CN105511909B
CN105511909B CN201510846189.0A CN201510846189A CN105511909B CN 105511909 B CN105511909 B CN 105511909B CN 201510846189 A CN201510846189 A CN 201510846189A CN 105511909 B CN105511909 B CN 105511909B
Authority
CN
China
Prior art keywords
version
plug
unit
pending
interface
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.)
Active
Application number
CN201510846189.0A
Other languages
Chinese (zh)
Other versions
CN105511909A (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.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing 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 Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201510846189.0A priority Critical patent/CN105511909B/en
Publication of CN105511909A publication Critical patent/CN105511909A/en
Application granted granted Critical
Publication of CN105511909B publication Critical patent/CN105511909B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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/44536Selecting among different versions

Abstract

The present invention provides a kind of method and devices of processing plug-in unit.This method includes:Obtain the processing type handled one or more plug-in units;According to the corresponding plug-in version adjustable strategies of the processing type, the configuration file being adjusted to the plug-in version of one or more of plug-in units is generated;The current plug-in version for obtaining pending plug-in unit matches the current plug-in version of the pending plug-in unit in the configuration file, obtains the corresponding interface version adjustment information of current plug-in version of the pending plug-in unit;Using the corresponding interface version adjustment information of current plug-in version for the pending plug-in unit that matching obtains, the current plug-in version of the pending plug-in unit is adjusted, to handle the pending plug-in unit.It follows that the embodiment of the present invention by adjusting the plug-in version of pending plug-in unit come realize to the pending plug-in unit it is timely, be effectively treated, technological means is more flexible.

Description

Handle the method and device of plug-in unit
Technical field
The present invention relates to field of computer technology, especially a kind of method and device of processing plug-in unit.
Background technology
In software development, Function Extension is carried out to software for convenience, plug-in mode may be used and developed, it will be soft The function package one by one to be realized of part finally sends out each plug-in unit in plug-in unit together in software main program packet Cloth.
When plug-in unit goes wrong or is developed new version need by it is offline when, in the related technology can only be in main program The plug-in unit is deleted in packet, or replaces using the plug-in unit of new version or covers the plug-in unit, however both modes are required for consuming Regular hour resource can not accomplish the plug-in unit offline immediately.
Invention content
In view of the above problems, it is proposed that the present invention overcoming the above problem in order to provide one kind or solves at least partly State the method for the processing plug-in unit of problem and corresponding device.
One side according to the present invention provides a kind of method of processing plug-in unit, including:
Obtain the processing type handled one or more plug-in units;
According to the corresponding plug-in version adjustable strategies of the processing type, the plug-in unit to one or more of plug-in units is generated The configuration file that version is adjusted, wherein the configuration file includes the corresponding interface boards of plug-in version of each plug-in unit This adjustment information;
The current plug-in version for obtaining pending plug-in unit, by the current plug-in version of the pending plug-in unit in the configuration It is matched in file, obtains the corresponding interface version adjustment information of current plug-in version of the pending plug-in unit;
Utilize the corresponding interface version adjustment information of current plug-in version for the pending plug-in unit that matching obtains, adjustment The current plug-in version of the pending plug-in unit, to handle the pending plug-in unit.
Optionally, the interface version adjustment information includes that the plug-in version of each plug-in unit can be supported after the adjustment Minimum interface version and/or highest interface version;
Utilize the corresponding interface version adjustment information of current plug-in version for the pending plug-in unit that matching obtains, adjustment The current plug-in version of the pending plug-in unit, including:
In the corresponding interface version adjustment information of current plug-in version of the pending plug-in unit obtained from matching, extraction Go out the minimum interface version and/or highest interface version that the current plug-in version of the pending plug-in unit can be supported after the adjustment This;
The minimum interface version and/or highest interface version that will be extracted, as the current of the pending plug-in unit The interface version that plug-in version can be supported.
Optionally, further include minimum the connecing of can be supported before adjustment of plug-in version of each plug-in unit in the configuration file Mouth version and/or highest interface version;
The current plug-in version of the pending plug-in unit is matched in the configuration file, is obtained described pending The corresponding interface version adjustment information of current plug-in version of plug-in unit, including:
By the current plug-in version of the pending plug-in unit and its minimum interface version that can be supported before adjustment and/or Highest interface version is matched in the configuration file, and the current plug-in version for obtaining the pending plug-in unit is corresponding Interface version adjustment information.
Optionally, further include the corresponding main program version of plug-in version of each plug-in unit in the configuration file;
The current plug-in version of the pending plug-in unit is matched in the configuration file, is obtained described pending The corresponding interface version adjustment information of current plug-in version of plug-in unit, including:
Obtain the corresponding main program version of current plug-in version of the pending plug-in unit;
By the current plug-in version of the pending plug-in unit and its corresponding main program version, in the configuration file into Row matching, obtains the corresponding interface version adjustment information of current plug-in version of the pending plug-in unit.
Optionally, further include in the configuration file the corresponding main program version of plug-in version of each plug-in unit before adjustment The minimum interface version and/or highest interface version that can be supported;
The current plug-in version of the pending plug-in unit is matched in the configuration file, is obtained described pending The corresponding interface version adjustment information of current plug-in version of plug-in unit, including:
The corresponding main program version of current plug-in version for obtaining the pending plug-in unit can be supported most before adjustment Low interface version and/or highest interface version;
The current plug-in version of the pending plug-in unit and its corresponding main program version and the main program version are existed The minimum interface version and/or highest interface version that can be supported before adjustment, are matched in the configuration file, obtain institute State the corresponding interface version adjustment information of current plug-in version of pending plug-in unit.
Optionally, further include the corresponding main program version of plug-in version of each plug-in unit in the interface version adjustment information The minimum interface version and/or highest interface version, the method that can be supported after the adjustment further include:
Utilize the corresponding interface version adjustment information of current plug-in version for the pending plug-in unit that matching obtains, adjustment The corresponding main program version of current plug-in version of the pending plug-in unit, to handle the pending plug-in unit.
Optionally, the corresponding interface version adjustment letter of current plug-in version of the pending plug-in unit obtained using matching Breath adjusts the corresponding main program version of current plug-in version of the pending plug-in unit, including:
In the corresponding interface version adjustment information of current plug-in version of the pending plug-in unit obtained from matching, extraction Go out the minimum interface version that the corresponding main program version of current plug-in version of the pending plug-in unit can be supported after the adjustment And/or highest interface version;
The minimum interface version and/or highest interface version that will be extracted, as the current of the pending plug-in unit The interface version that the corresponding main program version of plug-in version can be supported.
Optionally, further include that each plug-in unit is applicable in when applied to its corresponding processing type in the configuration file The corresponding interface version adjustment information of plug-in version;
The current plug-in version of the pending plug-in unit is matched in the configuration file, is obtained described pending The corresponding interface version adjustment information of current plug-in version of plug-in unit, including:
Obtain the processing type of the pending plug-in unit;
By the current plug-in version of the pending plug-in unit and processing type, is matched, obtained in the configuration file To the corresponding interface version adjustment information of current plug-in version of the pending plug-in unit.
Optionally, the processing type handled one or more plug-in units includes at least one following:
Urgent offline processing is carried out to one or more plug-in units;
It avoids one or more plug-in units and is upgraded to specified plug-in version.
Another aspect according to the present invention additionally provides a kind of device of processing plug-in unit, including:
Acquisition module, suitable for obtaining the processing type handled one or more plug-in units;
Generation module is suitable for according to the corresponding plug-in version adjustable strategies of the processing type, generation to one or The configuration file that the plug-in version of multiple plug-in units is adjusted, wherein the configuration file includes the plug-in unit version of each plug-in unit This corresponding interface version adjustment information;
Matching module is suitable for obtaining the current plug-in version of pending plug-in unit, the pending plug-in unit is worked as anterior plug-in Version is matched in the configuration file, obtains the corresponding interface version tune of current plug-in version of the pending plug-in unit Whole information;
Processing module, suitable for the corresponding interface version of current plug-in version of the pending plug-in unit obtained using matching Adjustment information adjusts the current plug-in version of the pending plug-in unit, to handle the pending plug-in unit.
Optionally, the interface version adjustment information includes that the plug-in version of each plug-in unit can be supported after the adjustment Minimum interface version and/or highest interface version;
The processing module is further adapted for:
In the corresponding interface version adjustment information of current plug-in version of the pending plug-in unit obtained from matching, extraction Go out the minimum interface version and/or highest interface version that the current plug-in version of the pending plug-in unit can be supported after the adjustment This;
The minimum interface version and/or highest interface version that will be extracted, as the current of the pending plug-in unit The interface version that plug-in version can be supported.
Optionally, further include minimum the connecing of can be supported before adjustment of plug-in version of each plug-in unit in the configuration file Mouth version and/or highest interface version;
The matching module is further adapted for:
By the current plug-in version of the pending plug-in unit and its minimum interface version that can be supported before adjustment and/or Highest interface version is matched in the configuration file, and the current plug-in version for obtaining the pending plug-in unit is corresponding Interface version adjustment information.
Optionally, further include the corresponding main program version of plug-in version of each plug-in unit in the configuration file;
The matching module is further adapted for:
Obtain the corresponding main program version of current plug-in version of the pending plug-in unit;
By the current plug-in version of the pending plug-in unit and its corresponding main program version, in the configuration file into Row matching, obtains the corresponding interface version adjustment information of current plug-in version of the pending plug-in unit.
Optionally, further include in the configuration file the corresponding main program version of plug-in version of each plug-in unit before adjustment The minimum interface version and/or highest interface version that can be supported;
The matching module is further adapted for:
The corresponding main program version of current plug-in version for obtaining the pending plug-in unit can be supported most before adjustment Low interface version and/or highest interface version;
The current plug-in version of the pending plug-in unit and its corresponding main program version and the main program version are existed The minimum interface version and/or highest interface version that can be supported before adjustment, are matched in the configuration file, obtain institute State the corresponding interface version adjustment information of current plug-in version of pending plug-in unit.
Optionally, further include the corresponding main program version of plug-in version of each plug-in unit in the interface version adjustment information The minimum interface version and/or highest interface version that can be supported after the adjustment;
The processing module is further adapted for:
Utilize the corresponding interface version adjustment information of current plug-in version for the pending plug-in unit that matching obtains, adjustment The corresponding main program version of current plug-in version of the pending plug-in unit, to handle the pending plug-in unit.
Optionally, the processing module is further adapted for:
In the corresponding interface version adjustment information of current plug-in version of the pending plug-in unit obtained from matching, extraction Go out the minimum interface version that the corresponding main program version of current plug-in version of the pending plug-in unit can be supported after the adjustment And/or highest interface version;
The minimum interface version and/or highest interface version that will be extracted, as the current of the pending plug-in unit The interface version that the corresponding main program version of plug-in version can be supported.
Optionally, further include that each plug-in unit is applicable in when applied to its corresponding processing type in the configuration file The corresponding interface version adjustment information of plug-in version;
The matching module is further adapted for:
Obtain the processing type of the pending plug-in unit;
By the current plug-in version of the pending plug-in unit and processing type, is matched, obtained in the configuration file To the corresponding interface version adjustment information of current plug-in version of the pending plug-in unit.
Optionally, the processing type handled one or more plug-in units includes at least one following:
Urgent offline processing is carried out to one or more plug-in units;
It avoids one or more plug-in units and is upgraded to specified plug-in version.
It in embodiments of the present invention, can be according to each plug-in unit when needing to handle one or more plug-in units The corresponding plug-in version adjustable strategies of processing type handled configure corresponding interface version adjustment letter in configuration file Breath.Then, the current plug-in version of pending plug-in unit is matched in the configuration file, obtains the current of pending plug-in unit The corresponding interface version adjustment information of plug-in version, and then the current plug-in version of the pending plug-in unit obtained using matching is corresponded to Interface version adjustment information, adjust the current plug-in version of pending plug-in unit.To which pending plug-in unit is worked as anterior plug-in version Originally it is adjusted to new plug-in version, the processing to pending plug-in unit is realized with this.It follows that the embodiment of the present invention passes through tune The plug-in version of whole pending plug-in unit come realize to the pending plug-in unit it is timely, be effectively treated, technological means is more flexible.Example Such as, the plug-in version that can adjust pending plug-in unit to carry out offline processing immediately to the pending plug-in unit, solves related skill It needs to delete plug-in unit when processing offline to plug-in unit in art or covers plug-in unit, the problem of dumb and elapsed time resource.
Above description is only the general introduction of technical solution of the present invention, in order to better understand the technical means of the present invention, And can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, below the special specific implementation mode for lifting the present invention.
According to the following detailed description of specific embodiments of the present invention in conjunction with the accompanying drawings, those skilled in the art will be brighter The above and other objects, advantages and features of the present invention.
Description of the drawings
By reading the detailed description of hereafter preferred embodiment, various other advantages and benefit are common for this field Technical staff will become clear.Attached drawing only for the purpose of illustrating preferred embodiments, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows plug-in version control schematic diagram according to an embodiment of the invention;
Fig. 2 shows the flow charts of the method for processing plug-in unit according to an embodiment of the invention;And
Fig. 3 shows the structural schematic diagram of the device of processing plug-in unit according to an embodiment of the invention.
Specific implementation mode
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although showing the disclosure in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure Completely it is communicated to those skilled in the art.
The main program (Host) that the embodiment of the present invention refers to, i.e. host program, such as 360 mobile guards, 360 antivirus.It inserts Part (Plugin) refers to applets, as " shaking " plug-in unit in 360 mobile guards, " antitheft " plug-in unit, " booting accelerates " insert Part, " calendar " plug-in unit, etc..
During the use of plug-in unit, the problem of whether plug-in version is adapted to main program version be usually directed to, that is, this is inserted Whether the interface of part version can normally be interacted with the interface of main program version, can pass through plug-in version controlling party here Case judges.Plug-in version control program is described in detail with reference to Fig. 1, in Fig. 1:
(1) evolution of version is indicated, version is increasingly newer (or high) from left to right;
(2) indicate that the minimum interface version that main program can be supported, also known as compatible version, information can write on main program It is recorded in code or by other forms;
(3) the highest interface version that main program can be supported is indicated, which can also write in main program code or logical Cross other forms record;
(4) the minimum interface version that indication plug unit can be supported or use, the information can write on the configuration information of plug-in unit In or recorded by other forms;
(5) the highest interface version that indication plug unit can be supported or use, the information can also write on plug-in unit match confidence It is recorded in breath or by other forms.
As shown in Figure 1, when the minimum interface version and highest interface version that plug-in unit can be supported all fall within main program institute energy , can also be equal in the interval range of the minimum interface version and highest interface version supported, it can be assumed that the plug-in version has Effect, i.e., the plug-in version is adapted to main program version.Specifically, in Fig. 1:
<1>For effective plug-in version, the minimum interface version which can be supported is identical with highest interface version, And all in the minimum interface version and highest interface version interval range that main program can be supported, this is that usual plug-in unit seldom relates to And the case where revising interface;
<2>For effective plug-in version, the minimum interface version which can be supported is different with highest interface version, But all in the minimum interface version and highest interface version interval range that main program can be supported, it is considered that be to plug-in unit Interface is adjusted, but is not influenced on current main program, and the condition that plug-in unit is adapted to main program is met;
<3>For invalid plug-in version, i.e. plug-in version is not adapted to main program version, supplements<2>A kind of situation, insert The highest interface version that part can be supported is adjusted, and current main program version is no longer compatible.In general, adjustment plug-in unit institute The highest interface version that can be supported is the new interface in order to use main program to provide, and at this time, if still using old master Program then will appear plug-in unit and is not adapted to main program;
<4>It is not adapted to main program version for invalid plug-in version namely plug-in version, supplements here<2>It is another Kind situation uses the new interface that main program provides if necessary to plug-in unit, or needs to delete some excessively old main program interfaces, So only need to adjust the minimum interface version that can be supported of main program, so that it may with allow the plug-in unit of some early versions it is spontaneous " under Line ", and update and arrive new version.
Based on above-mentioned plug-in version control strategy, the embodiment of the present invention can be by adjusting the plug-in version of pending plug-in unit Come realize to the pending plug-in unit it is timely, be effectively treated.Fig. 2 shows processing plug-in units according to an embodiment of the invention The flow chart of method.As shown in Fig. 2, this method at least includes the following steps S202 to step S208:
Step S202 obtains the processing type handled one or more plug-in units;
Step S204, according to the corresponding plug-in version adjustable strategies of processing type, one or more plug-in units are inserted in generation The configuration file that part version is adjusted, wherein the configuration file includes the corresponding interface boards of plug-in version of each plug-in unit This adjustment information;
Step S206 obtains the current plug-in version of pending plug-in unit, by the current plug-in version of pending plug-in unit with It sets in file and is matched, obtain the corresponding interface version adjustment information of current plug-in version of pending plug-in unit;
Step S208 utilizes the corresponding interface version adjustment letter of current plug-in version for the pending plug-in unit that matching obtains Breath, adjusts the current plug-in version of pending plug-in unit, to handle pending plug-in unit.
It in embodiments of the present invention, can be according to each plug-in unit when needing to handle one or more plug-in units The corresponding plug-in version adjustable strategies of processing type handled configure corresponding interface version adjustment letter in configuration file Breath.Then, the current plug-in version of pending plug-in unit is matched in the configuration file, obtains the current of pending plug-in unit The corresponding interface version adjustment information of plug-in version, and then the current plug-in version of the pending plug-in unit obtained using matching is corresponded to Interface version adjustment information, adjust the current plug-in version of pending plug-in unit.To which pending plug-in unit is worked as anterior plug-in version Originally it is adjusted to new plug-in version, the processing to pending plug-in unit is realized with this.It follows that the embodiment of the present invention passes through tune The plug-in version of whole pending plug-in unit come realize to the pending plug-in unit it is timely, be effectively treated, technological means is more flexible.Example Such as, the plug-in version that can adjust pending plug-in unit to carry out offline processing immediately to the pending plug-in unit, solves related skill It needs to delete plug-in unit when processing offline to plug-in unit in art or covers plug-in unit, the problem of dumb and elapsed time resource.
The processing type handled one or more plug-in units in above step S202 can be inserted to one or more Part carries out urgent offline processing, can also be to avoid one or more plug-in units to be upgraded to specified plug-in version, etc., the present invention It is without being limited thereto.For example, 360 mobile guards include " shaking " plug-in unit, " antitheft " plug-in unit, " booting accelerates " plug-in unit, " calendar " Plug-in unit needs to carry out offline processing to " shaking " plug-in unit and " antitheft " plug-in unit;For " booting accelerates " plug-in unit, it is not allowed to upgrade To specified plug-in version;For " calendar " plug-in unit, it is not handled.
According to the corresponding plug-in version adjustable strategies of processing type in step S204, generate to one or more plug-in units The configuration file that plug-in version is adjusted may include the corresponding interface boards of plug-in version of each plug-in unit in the configuration file This adjustment information, the minimum interface version that can be supported after the adjustment such as the plug-in version of each plug-in unit and/or highest interface version This, can refer to plug-in version control program described above and carry out here.At this point, step S206 is alternatively implemented as to wait locating Reason plug-in unit current plug-in version matched in configuration file, obtain pending plug-in unit current plug-in version it is corresponding The minimum interface version and/or highest interface version that can be supported after adjustment.Then, step S208 is alternatively implemented as from matching In the corresponding interface version adjustment information of current plug-in version of obtained pending plug-in unit, the current of pending plug-in unit is extracted The minimum interface version and/or highest interface version that plug-in version can be supported after the adjustment, and then minimum connect what is extracted Mouth version and/or highest interface version, the interface version that the current plug-in version as pending plug-in unit can be supported.
For example, in main program " 360 mobile guards " (minimum interface version that the current version of main program can be supported and most High interface boards are originally respectively 10,10) in, minimum interface version that the current plug-in version of " shaking " plug-in unit can be supported and most High interface boards are originally respectively 10,10, when needing to carry out offline processing to " shaking " plug-in unit, according to plug-in unit version described above This control program can configure the corresponding minimum interface version of current plug-in version and highest interface version of " shaking " plug-in unit Respectively 0,0, that is, corresponded to using 0, the 0 of configuration and replace 10, the 10 interface versions that can be supported as current plug-in version.When So, the minimum interface version and highest interface version that the current version of main program " 360 mobile guards " can be supported can also be referred to This, configures the corresponding minimum interface version of current plug-in version and highest interface version of " shaking " plug-in unit, full in configuration Foot plug-in version control program shown in FIG. 1, the present invention are not restricted for specifically configuring parameter.
In another example main program " 360 mobile guards " (minimum interface version that the current version of main program can be supported and Highest interface version is respectively 10,10) in, minimum interface boards that the current plug-in version V1 of " booting accelerates " plug-in unit can be supported This and highest interface version are respectively 4,4, when " booting accelerates " plug-in unit needs are avoided being upgraded to specified plug-in version (e.g., V2 And V3, wherein the minimum interface version and highest interface version that V2 can be supported are respectively minimum connecing of can be supported of 5,5, V3 Mouthful version and highest interface version be respectively 6,6) when, according to plug-in version control program described above, " booting can be configured The corresponding minimum interface version of current plug-in version and highest interface version of acceleration " plug-in unit are respectively 6,6, that is, using configuration 6,6 correspond to and replace 4, the 4 interface versions that can be supported as current plug-in version.
In an embodiment of the present invention, VerInfo classes and OverrideInfo classes can be defined configuration file is arranged.
First, VerInfo classes are defined, such one version structure (plug-in unit or main program version structure) of expression, including with Lower field:
Low indicates the minimum interface version that version can be supported;
High indicates the highest interface version that version can be supported;
Ver, indication plug unit version;
VersionBuild indicates main program version.
Such is separately to possess method used in OverrideInfo:from(JSONObject):VerInfo, indicating will JSONObject is converted to VerInfo.
For example, the version structure of " shaking " plug-in unit can be expressed as:
“Plugin”:{“low”:10,“high”:10,“ver”:105}
The version structure of main program " 360 mobile guards " can be expressed as:
“Host”:{“low”:10,“high”:10,“versionBuild”:201}
Secondly, OverrideInfo classes are defined, one " adjustment or converted version information " are indicated, including four kinds of VerInfo Version structure:
Plugin indicates adjustment anterior plug-in version;
Host indicates main program version before adjustment;
TranslatedPlugin indicates plug-in version after adjustment;
TranslatedHost indicates main program version after adjustment.
After meeting Plugin and/or Host version informations, can convert thereof into translatedPlugin and/or translatedHost。
Such also provides from methods, and JSONObject is converted to OverrideInfo, and then by OverrideInfo Be converted to four independent VerInfo.
For example, in main program " 360 mobile guards ", needs to carry out offline processing to " shaking " plug-in unit, then can match Setting translatedPlugin is:
“translatedPlugin”:{“low”:0,“high”:0,“ver”:105}
In another example as it was noted above, in main program " 360 mobile guards ", " booting accelerates " plug-in unit is avoided being upgraded to Specified plug-in version (e.g., V2 and V3 versions), then can configure translatedPlugin is:
“translatedPlugin”:{“low”:6,“high”:6,“ver”:105}
When in configuration file comprising matching confidence for multiple plug-in units (each plug-in unit include one or more plug-in versions) When breath, for pending plug-in unit, the configuration information for the current plug-in version for matching the pending plug-in unit is needed, is carried in step S206 And it by matching the current plug-in version of pending plug-in unit in configuration file, obtains the current of pending plug-in unit and inserts The corresponding interface version adjustment information of part version.
In an embodiment of the present invention, in order to further realize accurate matching, step S206 is alternatively implemented as to wait locating Manage the current plug-in version of plug-in unit and its minimum interface version and/or highest interface version that can be supported before adjustment, with It sets in file and is matched, obtain the corresponding interface version adjustment information of current plug-in version of pending plug-in unit.
In an embodiment of the present invention, can also include inserting for each plug-in unit in configuration file in order to realize accurate matching The corresponding main program version of part version, step S206 are alternatively implemented as following steps A1 to step A2:
Step A1 obtains the corresponding main program version of current plug-in version of pending plug-in unit;
Step A2, by the current plug-in version of pending plug-in unit and its corresponding main program version, in configuration file into Row matching, obtains the corresponding interface version adjustment information of current plug-in version of pending plug-in unit.
In addition, can also include the corresponding main program version of the plug-in version institute before adjustment of each plug-in unit in configuration file The minimum interface version and/or highest interface version that can be supported, at this point, step S206 is alternatively implemented as following steps B1 to step Rapid B2:
Step B1 obtains what the corresponding main program version of current plug-in version of pending plug-in unit can be supported before adjustment Minimum interface version and/or highest interface version;
Step B2, by the current plug-in version of pending plug-in unit and its corresponding main program version and the main program version This minimum interface version that can be supported before adjustment and/or highest interface version, are matched in configuration file, are waited for Handle the corresponding interface version adjustment information of current plug-in version of plug-in unit.
In an embodiment of the present invention, it in order to realize accurate matching, can also answered including each plug-in unit in configuration file The corresponding interface version adjustment information of plug-in version for being applicable in when its corresponding processing type, step S206 are optionally real It applies as following steps C1 to step C2:
Step C1 obtains the processing type of pending plug-in unit;
The current plug-in version of pending plug-in unit and processing type are matched in configuration file, are obtained by step C2 The corresponding interface version adjustment information of current plug-in version of pending plug-in unit.
It in embodiments of the present invention, can be by adjusting the current plug-in version of pending plug-in unit, to realize to pending Plug-in unit is handled.It in another embodiment of the invention, can also be by adjusting the current plug-in version pair of pending plug-in unit The main program version answered, is handled pending plug-in unit to realize.That is, being inserted in step S204 according to processing type is corresponding Part version adjustable strategies, generate the configuration file that is adjusted to the plug-in version of one or more plug-in units, in the configuration file May include each plug-in unit the minimum interface version that can be supported after the adjustment of the corresponding main program version of plug-in version and/or Highest interface version can refer to plug-in version control program described above and carry out here.
At this point, step S206 is alternatively implemented as carrying out the current plug-in version of pending plug-in unit in configuration file Match, obtains the minimum interface version that the corresponding main program version of current plug-in version of pending plug-in unit can be supported after the adjustment And/or highest interface version.
Then, step S208 is alternatively implemented as connecing from the current plug-in version for matching obtained pending plug-in unit is corresponding In mouth version adjustment information, extracting the corresponding main program version of current plug-in version of pending plug-in unit can prop up after the adjustment The minimum interface version and/or highest interface version held, and then the minimum interface version and/or highest interface version that will be extracted This, the interface version that the corresponding main program version of current plug-in version as pending plug-in unit can be supported.
For example, in main program " 360 mobile guards " (minimum interface version that the current version of main program can be supported and most High interface boards are originally respectively 10,10) in, minimum interface version that the current plug-in version of " shaking " plug-in unit can be supported and most High interface boards are originally respectively 10,10, when needing to carry out offline processing to " shaking " plug-in unit, according to plug-in unit version described above This control program can configure the minimum interface boards that the current version of main program " 360 mobile guards " can be supported after the adjustment Originally and/or highest interface version is respectively 10,11, i.e., 10,11 using configuration, which correspond to, replaces 10,10 as pending plug-in unit The interface version that the current corresponding main program version of plug-in version can be supported.
The realization process of the method for the processing plug-in unit of the present invention is discussed in detail below by a specific embodiment.In the reality It applies in example, defines PluginOverride classes:
First, Plugin-override.json configuration files are loaded;
Secondly, JSONArray is read one by one;
Then, OverrideInfo and VerInfo is parsed, and is deposited into TABLE this MAP, wherein Key is plug-in unit Name, Value ArrayList<OverrideInfo>, this is because a plug-in unit can correspond to multiple OverrideInfo, Qualified several plug-in versions can be converted into new.
For example, main program " 360 mobile guards " includes " shaking " plug-in unit, " antitheft " plug-in unit, " calendar " plug-in unit, need Offline processing is carried out to " shaking " plug-in unit;For " antitheft " plug-in unit, it is not allowed to be upgraded to specified plug-in version;For " day Go through " plug-in unit, it is not handled, the configuration information extracted from configuration file is as follows:
[{
“name”:“shakeoff”
“Plugin”:{“low”:10,“high”:10,“ver”:105}
“Host”:{“low”:10,“high”:10,“versionBuild”:201}
“translatedPlugin”:{“low”:0,“high”:0,“ver”:105}
},
{
“name”:“Antitheft”
“Plugin”:{“low”:4,“high”:4,“ver”:106}
“Host”:{“low”:10,“high”:10,“versionBuild”:201}
“translatedPlugin”:{“low”:6,“high”:6,“ver”:106}
}]
Next, using check functions, that is, check (String pName, int pLow, int pHigh, int PVer, int low, int host), the current plug-in version of pending plug-in unit is matched in configuration file, is waited for The corresponding interface version adjustment information of current plug-in version of plug-in unit is handled, the parameter in the check functions is respectively:
pName:The plug-in unit name of pending plug-in unit;
pLow:The minimum interface version that pending plug-in unit can be supported;
pHigh:The highest interface version that pending plug-in unit can be supported;
pVer:The plug-in version of pending plug-in unit;
low:The minimum interface version that the corresponding main program version of pending plug-in unit can be supported;
host:The highest interface version that the corresponding main program version of pending plug-in unit can be supported.
It can specifically be matched by following steps:
1) the plug-in unit name for obtaining pending plug-in unit obtains OverrideInfo, ArrayList by plug-in unit name from MAP <OverrideInfo>Lst=TABLE.get (pName).If getting, can enter step 2);
2) " exactly matching one by one " scheme is attempted, it is so-called to exactly match, it is exactly that existing Plugin is again in OverrideInfo When having Host information, then it must assure that and both match, realize accurate matching, just can adjust or convert.Specifically:
If there is Plugin information, first attempt to match it.Condition is:Plugin.high and pending plug-in unit it is equal, and Plugin.ver do not configure or Plugin.ver and pending plug-in unit it is equal.If it is, continuing checking for Host letters Breath, otherwise skips, matches next OverrideInfo.
If successful match, Host information is further matched.Its condition is:Host.high and pending plug-in unit it is equal, Or and no configuration or its value and the VersionCode of application be not equal by Host.versionBuild.If so, then continue, Otherwise it skips, matches next Override.
If successful match, tPlugin is just assigned translatedPlugin and translatedHost, and (the two has Possible there are one have, it is also possible to have), start to adjust or convert.
3) " only matching Plugin information schemes " is attempted, if not finding the project exactly matched in step 2), is then existed Here only the scheme of matching Plugin information namely Host information matches can be ignored.Here, matching Plugin information is attempted It is identical with step 2).
4) " only matching Host information schemes " is attempted, if the project exactly matched is not found in step 2), then at this In only match the scheme of Host information namely Plugin information matches and can be ignored.Here, matching Host information and step are attempted Rapid 2) identical.
5) terminal check adjustment or converted version after plug-in unit whether realize corresponding processing.The step 2) of front is to step 4) it is used for the purpose of finding matched OverrideInfo, and is converted into tPlugin and tHost.Here after using conversion Version information verify, both included that conversion is successful among these, and also included not being converted into, can specifically refer to described above Plug-in version control program carry out, details are not described herein again.
Method based on the processing plug-in unit that each embodiment above provides, is based on same inventive concept, the embodiment of the present invention Additionally provide a kind of device of processing plug-in unit.Fig. 3 shows the knot of the device of processing plug-in unit according to an embodiment of the invention Structure schematic diagram.As shown in figure 3, the device 300 at least may include acquisition module 310, generation module 320, matching module 330 with And processing module 340.
It now introduces between each composition of the device 300 of the processing plug-in unit of the embodiment of the present invention or the function and each section of device Connection relation:
Acquisition module 310, suitable for obtaining the processing type handled one or more plug-in units;
Generation module 320 is coupled with acquisition module 310, is suitable for adjusting plan according to the corresponding plug-in version of processing type Slightly, the configuration file being adjusted to the plug-in version of one or more plug-in units is generated, wherein configuration file includes each inserts The corresponding interface version adjustment information of plug-in version of part;
Matching module 330 is coupled with generation module 320, is suitable for obtaining the current plug-in version of pending plug-in unit, will wait for The current plug-in version of processing plug-in unit is matched in configuration file, and the current plug-in version for obtaining pending plug-in unit is corresponding Interface version adjustment information;
Processing module 340 is coupled with matching module 330, and the current of pending plug-in unit suitable for being obtained using matching is inserted The corresponding interface version adjustment information of part version, adjusts the current plug-in version of pending plug-in unit, to be carried out to pending plug-in unit Processing.
In an embodiment of the present invention, interface version adjustment information includes the plug-in version institute after the adjustment of each plug-in unit The minimum interface version and/or highest interface version, processing module 340 that can be supported are further adapted for:
In the corresponding interface version adjustment information of current plug-in version of the pending plug-in unit obtained from matching, extracts and wait for The minimum interface version and/or highest interface version that the current plug-in version of processing plug-in unit can be supported after the adjustment;
The minimum interface version and/or highest interface version that will be extracted, the current plug-in version as pending plug-in unit The interface version that can be supported.
In an embodiment of the present invention, further include that the plug-in version of each plug-in unit can be supported before adjustment in configuration file Minimum interface version and/or highest interface version, matching module 330 be further adapted for:
By the current plug-in version of pending plug-in unit and its minimum interface version and/or highest that can be supported before adjustment Interface version, is matched in configuration file, obtains the corresponding interface version adjustment of current plug-in version of pending plug-in unit Information.
In an embodiment of the present invention, further include the corresponding main program version of plug-in version of each plug-in unit in configuration file This, matching module 330 is further adapted for:
Obtain the corresponding main program version of current plug-in version of pending plug-in unit;
By the current plug-in version of pending plug-in unit and its corresponding main program version, matched in configuration file, Obtain the corresponding interface version adjustment information of current plug-in version of pending plug-in unit.
In an embodiment of the present invention, further include the corresponding main program version of plug-in version of each plug-in unit in configuration file The minimum interface version and/or highest interface version that can be supported before adjustment, matching module 330 are further adapted for:
Obtain that the corresponding main program version of current plug-in version of pending plug-in unit can be supported before adjustment minimum connects Mouth version and/or highest interface version;
The current plug-in version of pending plug-in unit and its corresponding main program version and the main program version are being adjusted Before the minimum interface version that can be supported and/or highest interface version, matched in configuration file, obtain pending plug-in unit The corresponding interface version adjustment information of current plug-in version.
In an embodiment of the present invention, further include the corresponding master of plug-in version of each plug-in unit in interface version adjustment information The minimum interface version and/or highest interface version, processing module 340 that program version can be supported after the adjustment are further adapted for:
Using the corresponding interface version adjustment information of current plug-in version for the pending plug-in unit that matching obtains, adjusts and wait locating The corresponding main program version of current plug-in version for managing plug-in unit, to handle pending plug-in unit.
In an embodiment of the present invention, processing module 340 is further adapted for:
In the corresponding interface version adjustment information of current plug-in version of the pending plug-in unit obtained from matching, extracts and wait for The minimum interface version and/or highest that the corresponding main program version of current plug-in version of processing plug-in unit can be supported after the adjustment Interface version;
The minimum interface version and/or highest interface version that will be extracted, the current plug-in version as pending plug-in unit The interface version that corresponding main program version can be supported.
In an embodiment of the present invention, further include each plug-in unit in configuration file when applied to its corresponding processing type The corresponding interface version adjustment information of plug-in version being applicable in, matching module 330 are further adapted for:
Obtain the processing type of pending plug-in unit;
By the current plug-in version of pending plug-in unit and processing type, is matched, obtained pending in configuration file The corresponding interface version adjustment information of current plug-in version of plug-in unit.
In an embodiment of the present invention, the processing type one or more plug-in units handled include it is following at least it One:
Urgent offline processing is carried out to one or more plug-in units;
It avoids one or more plug-in units and is upgraded to specified plug-in version.
According to the combination of any one above-mentioned preferred embodiment or multiple preferred embodiments, the embodiment of the present invention can reach Following advantageous effect:
It in embodiments of the present invention, can be according to each plug-in unit when needing to handle one or more plug-in units The corresponding plug-in version adjustable strategies of processing type handled configure corresponding interface version adjustment letter in configuration file Breath.Then, the current plug-in version of pending plug-in unit is matched in the configuration file, obtains the current of pending plug-in unit The corresponding interface version adjustment information of plug-in version, and then the current plug-in version of the pending plug-in unit obtained using matching is corresponded to Interface version adjustment information, adjust the current plug-in version of pending plug-in unit.To which pending plug-in unit is worked as anterior plug-in version Originally it is adjusted to new plug-in version, the processing to pending plug-in unit is realized with this.It follows that the embodiment of the present invention passes through tune The plug-in version of whole pending plug-in unit come realize to the pending plug-in unit it is timely, be effectively treated, technological means is more flexible.Example Such as, the plug-in version that can adjust pending plug-in unit to carry out offline processing immediately to the pending plug-in unit, solves related skill It needs to delete plug-in unit when processing offline to plug-in unit in art or covers plug-in unit, the problem of dumb and elapsed time resource.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that the implementation of the present invention Example can be put into practice without these specific details.In some instances, well known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this description.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of each inventive aspect, Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:It is i.e. required to protect Shield the present invention claims the more features of feature than being expressly recited in each claim.More precisely, as following Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore, Thus the claims for following specific implementation mode are expressly incorporated in the specific implementation mode, wherein each claim itself All as a separate embodiment of the present invention.
Those skilled in the art, which are appreciated that, to carry out adaptively the module in the equipment in embodiment Change and they are arranged in the one or more equipment different from the embodiment.It can be the module or list in embodiment Member or component be combined into a module or unit or component, and can be divided into addition multiple submodule or subelement or Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it may be used any Combination is disclosed to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so to appoint Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification (including adjoint power Profit requires, abstract and attached drawing) disclosed in each feature can be by providing the alternative features of identical, equivalent or similar purpose come generation It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included certain features rather than other feature, but the combination of the feature of different embodiments means in of the invention Within the scope of and form different embodiments.For example, in detail in the claims, embodiment claimed it is one of arbitrary It mode can use in any combination.
The all parts embodiment of the present invention can be with hardware realization, or to run on one or more processors Software module realize, or realized with combination thereof.It will be understood by those of skill in the art that can use in practice Some in the device of microprocessor or digital signal processor (DSP) to realize processing plug-in unit according to the ... of the embodiment of the present invention Or some or all functions of whole components.The present invention is also implemented as one for executing method as described herein Partly or completely equipment or program of device (for example, computer program and computer program product).Such realization is originally The program of invention can may be stored on the computer-readable medium, or can be with the form of one or more signal.In this way Signal can download and obtain from internet website, either provide on carrier signal or provide in any other forms.
It should be noted that the present invention will be described rather than limits the invention for above-described embodiment, and ability Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference mark between bracket should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" before element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real It is existing.In the unit claims listing several devices, several in these devices can be by the same hardware branch To embody.The use of word first, second, and third does not indicate that any sequence.These words can be explained and be run after fame Claim.
So far, although those skilled in the art will appreciate that present invention has been shown and described in detail herein multiple shows Example property embodiment still without departing from the spirit and scope of the present invention, still can according to the present disclosure directly Determine or derive many other variations or modifications consistent with the principles of the invention.Therefore, the scope of the present invention is understood that and recognizes It is set to and covers other all these variations or modifications.
The embodiment of the invention also discloses:A1, a kind of method of processing plug-in unit, including:
Obtain the processing type handled one or more plug-in units;
According to the corresponding plug-in version adjustable strategies of the processing type, the plug-in unit to one or more of plug-in units is generated The configuration file that version is adjusted, wherein the configuration file includes the corresponding interface boards of plug-in version of each plug-in unit This adjustment information;
The current plug-in version for obtaining pending plug-in unit, by the current plug-in version of the pending plug-in unit in the configuration It is matched in file, obtains the corresponding interface version adjustment information of current plug-in version of the pending plug-in unit;
Utilize the corresponding interface version adjustment information of current plug-in version for the pending plug-in unit that matching obtains, adjustment The current plug-in version of the pending plug-in unit, to handle the pending plug-in unit.
A2, the method according to A1, wherein
The interface version adjustment information includes minimum connecing of can be supported after the adjustment of the plug-in version of each plug-in unit Mouth version and/or highest interface version;
Utilize the corresponding interface version adjustment information of current plug-in version for the pending plug-in unit that matching obtains, adjustment The current plug-in version of the pending plug-in unit, including:
In the corresponding interface version adjustment information of current plug-in version of the pending plug-in unit obtained from matching, extraction Go out the minimum interface version and/or highest interface version that the current plug-in version of the pending plug-in unit can be supported after the adjustment This;
The minimum interface version and/or highest interface version that will be extracted, as the current of the pending plug-in unit The interface version that plug-in version can be supported.
A3, the method according to A1 or A2, wherein
It further include the minimum interface version that the plug-in version of each plug-in unit can be supported before adjustment in the configuration file And/or highest interface version;
The current plug-in version of the pending plug-in unit is matched in the configuration file, is obtained described pending The corresponding interface version adjustment information of current plug-in version of plug-in unit, including:
By the current plug-in version of the pending plug-in unit and its minimum interface version that can be supported before adjustment and/or Highest interface version is matched in the configuration file, and the current plug-in version for obtaining the pending plug-in unit is corresponding Interface version adjustment information.
A4, according to A1-A3 any one of them methods, wherein
It further include the corresponding main program version of plug-in version of each plug-in unit in the configuration file;
The current plug-in version of the pending plug-in unit is matched in the configuration file, is obtained described pending The corresponding interface version adjustment information of current plug-in version of plug-in unit, including:
Obtain the corresponding main program version of current plug-in version of the pending plug-in unit;
By the current plug-in version of the pending plug-in unit and its corresponding main program version, in the configuration file into Row matching, obtains the corresponding interface version adjustment information of current plug-in version of the pending plug-in unit.
A5, the method according to A4, wherein
Further include the corresponding main program version of plug-in version of each plug-in unit in the configuration file to prop up before adjustment The minimum interface version and/or highest interface version held;
The current plug-in version of the pending plug-in unit is matched in the configuration file, is obtained described pending The corresponding interface version adjustment information of current plug-in version of plug-in unit, including:
The corresponding main program version of current plug-in version for obtaining the pending plug-in unit can be supported most before adjustment Low interface version and/or highest interface version;
The current plug-in version of the pending plug-in unit and its corresponding main program version and the main program version are existed The minimum interface version and/or highest interface version that can be supported before adjustment, are matched in the configuration file, obtain institute State the corresponding interface version adjustment information of current plug-in version of pending plug-in unit.
A6, according to A1-A5 any one of them methods, wherein further include in the interface version adjustment information it is each insert The minimum interface version and/or highest interface version that the corresponding main program version of plug-in version of part can be supported after the adjustment, The method further includes:
Utilize the corresponding interface version adjustment information of current plug-in version for the pending plug-in unit that matching obtains, adjustment The corresponding main program version of current plug-in version of the pending plug-in unit, to handle the pending plug-in unit.
A7, the method according to A6, wherein utilize the current plug-in version pair for the pending plug-in unit that matching obtains The interface version adjustment information answered adjusts the corresponding main program version of current plug-in version of the pending plug-in unit, including:
In the corresponding interface version adjustment information of current plug-in version of the pending plug-in unit obtained from matching, extraction Go out the minimum interface version that the corresponding main program version of current plug-in version of the pending plug-in unit can be supported after the adjustment And/or highest interface version;
The minimum interface version and/or highest interface version that will be extracted, as the current of the pending plug-in unit The interface version that the corresponding main program version of plug-in version can be supported.
A8, according to A1-A7 any one of them methods, wherein
It further include the plug-in unit version that each plug-in unit is applicable in when applied to its corresponding processing type in the configuration file This corresponding interface version adjustment information;
The current plug-in version of the pending plug-in unit is matched in the configuration file, is obtained described pending The corresponding interface version adjustment information of current plug-in version of plug-in unit, including:
Obtain the processing type of the pending plug-in unit;
By the current plug-in version of the pending plug-in unit and processing type, is matched, obtained in the configuration file To the corresponding interface version adjustment information of current plug-in version of the pending plug-in unit.
A9, according to A1-A8 any one of them methods, wherein the processing that one or more plug-in units are handled Type includes at least one following:
Urgent offline processing is carried out to one or more plug-in units;
It avoids one or more plug-in units and is upgraded to specified plug-in version.
B10, a kind of device of processing plug-in unit, including:
Acquisition module, suitable for obtaining the processing type handled one or more plug-in units;
Generation module is suitable for according to the corresponding plug-in version adjustable strategies of the processing type, generation to one or The configuration file that the plug-in version of multiple plug-in units is adjusted, wherein the configuration file includes the plug-in unit version of each plug-in unit This corresponding interface version adjustment information;
Matching module is suitable for obtaining the current plug-in version of pending plug-in unit, the pending plug-in unit is worked as anterior plug-in Version is matched in the configuration file, obtains the corresponding interface version tune of current plug-in version of the pending plug-in unit Whole information;
Processing module, suitable for the corresponding interface version of current plug-in version of the pending plug-in unit obtained using matching Adjustment information adjusts the current plug-in version of the pending plug-in unit, to handle the pending plug-in unit.
B11, the device according to B10, wherein
The interface version adjustment information includes minimum connecing of can be supported after the adjustment of the plug-in version of each plug-in unit Mouth version and/or highest interface version;
The processing module is further adapted for:
In the corresponding interface version adjustment information of current plug-in version of the pending plug-in unit obtained from matching, extraction Go out the minimum interface version and/or highest interface version that the current plug-in version of the pending plug-in unit can be supported after the adjustment This;
The minimum interface version and/or highest interface version that will be extracted, as the current of the pending plug-in unit The interface version that plug-in version can be supported.
B12, the device according to B10 or B11, wherein
It further include the minimum interface version that the plug-in version of each plug-in unit can be supported before adjustment in the configuration file And/or highest interface version;
The matching module is further adapted for:
By the current plug-in version of the pending plug-in unit and its minimum interface version that can be supported before adjustment and/or Highest interface version is matched in the configuration file, and the current plug-in version for obtaining the pending plug-in unit is corresponding Interface version adjustment information.
B13, according to B10-B12 any one of them devices, wherein
It further include the corresponding main program version of plug-in version of each plug-in unit in the configuration file;
The matching module is further adapted for:
Obtain the corresponding main program version of current plug-in version of the pending plug-in unit;
By the current plug-in version of the pending plug-in unit and its corresponding main program version, in the configuration file into Row matching, obtains the corresponding interface version adjustment information of current plug-in version of the pending plug-in unit.
B14, the device according to B13, wherein
Further include the corresponding main program version of plug-in version of each plug-in unit in the configuration file to prop up before adjustment The minimum interface version and/or highest interface version held;
The matching module is further adapted for:
The corresponding main program version of current plug-in version for obtaining the pending plug-in unit can be supported most before adjustment Low interface version and/or highest interface version;
The current plug-in version of the pending plug-in unit and its corresponding main program version and the main program version are existed The minimum interface version and/or highest interface version that can be supported before adjustment, are matched in the configuration file, obtain institute State the corresponding interface version adjustment information of current plug-in version of pending plug-in unit.
B15, according to B10-B14 any one of them devices, wherein
Further include that the corresponding main program version of plug-in version of each plug-in unit is adjusting in the interface version adjustment information The minimum interface version and/or highest interface version that can be supported afterwards;
The processing module is further adapted for:
Utilize the corresponding interface version adjustment information of current plug-in version for the pending plug-in unit that matching obtains, adjustment The corresponding main program version of current plug-in version of the pending plug-in unit, to handle the pending plug-in unit.
B16, the device according to B15, wherein the processing module is further adapted for:
In the corresponding interface version adjustment information of current plug-in version of the pending plug-in unit obtained from matching, extraction Go out the minimum interface version that the corresponding main program version of current plug-in version of the pending plug-in unit can be supported after the adjustment And/or highest interface version;
The minimum interface version and/or highest interface version that will be extracted, as the current of the pending plug-in unit The interface version that the corresponding main program version of plug-in version can be supported.
B17, according to B10-B16 any one of them devices, wherein
It further include the plug-in unit version that each plug-in unit is applicable in when applied to its corresponding processing type in the configuration file This corresponding interface version adjustment information;
The matching module is further adapted for:
Obtain the processing type of the pending plug-in unit;
By the current plug-in version of the pending plug-in unit and processing type, is matched, obtained in the configuration file To the corresponding interface version adjustment information of current plug-in version of the pending plug-in unit.
B18, according to B10-B17 any one of them devices, wherein the place that one or more plug-in units are handled It includes at least one following to manage type:
Urgent offline processing is carried out to one or more plug-in units;
It avoids one or more plug-in units and is upgraded to specified plug-in version.

Claims (16)

1. a kind of method of processing plug-in unit, including:
Obtain the processing type handled one or more plug-in units;
According to the corresponding plug-in version adjustable strategies of the processing type, the plug-in version to one or more of plug-in units is generated The configuration file being adjusted, wherein the configuration file includes the corresponding interface version tune of plug-in version of each plug-in unit Whole information;
The current plug-in version for obtaining pending plug-in unit, by the current plug-in version of the pending plug-in unit in the configuration file In matched, obtain the corresponding interface version adjustment information of current plug-in version of the pending plug-in unit;
The corresponding interface version adjustment information of current plug-in version of the pending plug-in unit obtained using matching, described in adjustment The current plug-in version of pending plug-in unit, to handle the pending plug-in unit;
Wherein, the processing type handled one or more plug-in units includes at least one following:
Urgent offline processing is carried out to one or more plug-in units;
It avoids one or more plug-in units and is upgraded to specified plug-in version.
2. according to the method described in claim 1, wherein,
The interface version adjustment information includes the minimum interface boards that the plug-in version of each plug-in unit can be supported after the adjustment Sheet and/or highest interface version;
The corresponding interface version adjustment information of current plug-in version of the pending plug-in unit obtained using matching, described in adjustment The current plug-in version of pending plug-in unit, including:
In the corresponding interface version adjustment information of current plug-in version of the pending plug-in unit obtained from matching, institute is extracted State the minimum interface version and/or highest interface version that the current plug-in version of pending plug-in unit can be supported after the adjustment;
The minimum interface version and/or highest interface version that will be extracted, work as anterior plug-in as the pending plug-in unit The interface version that version can be supported.
3. method according to claim 1 or 2, wherein
Further include in the configuration file each plug-in unit the minimum interface version that can be supported before adjustment of plug-in version and/or Highest interface version;
The current plug-in version of the pending plug-in unit is matched in the configuration file, obtains the pending plug-in unit The corresponding interface version adjustment information of current plug-in version, including:
By the current plug-in version of the pending plug-in unit and its minimum interface version and/or highest that can be supported before adjustment Interface version is matched in the configuration file, obtains the corresponding interface of current plug-in version of the pending plug-in unit Version adjustment information.
4. method according to claim 1 or 2, wherein
It further include the corresponding main program version of plug-in version of each plug-in unit in the configuration file;
The current plug-in version of the pending plug-in unit is matched in the configuration file, obtains the pending plug-in unit The corresponding interface version adjustment information of current plug-in version, including:
Obtain the corresponding main program version of current plug-in version of the pending plug-in unit;
By the current plug-in version of the pending plug-in unit and its corresponding main program version, the progress in the configuration file Match, obtains the corresponding interface version adjustment information of current plug-in version of the pending plug-in unit.
5. according to the method described in claim 4, wherein,
Further include that the corresponding main program version of plug-in version of each plug-in unit can be supported before adjustment in the configuration file Minimum interface version and/or highest interface version;
The current plug-in version of the pending plug-in unit is matched in the configuration file, obtains the pending plug-in unit The corresponding interface version adjustment information of current plug-in version, including:
Obtain that the corresponding main program version of current plug-in version of the pending plug-in unit can be supported before adjustment minimum connects Mouth version and/or highest interface version;
The current plug-in version of the pending plug-in unit and its corresponding main program version and the main program version are being adjusted Before the minimum interface version that can be supported and/or highest interface version, matched in the configuration file, obtain described wait for Handle the corresponding interface version adjustment information of current plug-in version of plug-in unit.
6. according to claim 1-2,5 any one of them methods, wherein further include each in the interface version adjustment information The minimum interface version and/or highest interface version that the corresponding main program version of plug-in version of plug-in unit can be supported after the adjustment This, the method further includes:
The corresponding interface version adjustment information of current plug-in version of the pending plug-in unit obtained using matching, described in adjustment The corresponding main program version of current plug-in version of pending plug-in unit, to handle the pending plug-in unit.
7. according to the method described in claim 6, wherein, utilizing the current plug-in version for the pending plug-in unit that matching obtains Corresponding interface version adjustment information adjusts the corresponding main program version of current plug-in version of the pending plug-in unit, including:
In the corresponding interface version adjustment information of current plug-in version of the pending plug-in unit obtained from matching, institute is extracted State minimum interface version that the corresponding main program version of current plug-in version of pending plug-in unit can be supported after the adjustment and/or Highest interface version;
The minimum interface version and/or highest interface version that will be extracted, work as anterior plug-in as the pending plug-in unit The interface version that the corresponding main program version of version can be supported.
8. according to any one of them method of claim 1-2,5,7, wherein
It further include the plug-in version pair that each plug-in unit is applicable in when applied to its corresponding processing type in the configuration file The interface version adjustment information answered;
The current plug-in version of the pending plug-in unit is matched in the configuration file, obtains the pending plug-in unit The corresponding interface version adjustment information of current plug-in version, including:
Obtain the processing type of the pending plug-in unit;
By the current plug-in version of the pending plug-in unit and processing type, is matched in the configuration file, obtain institute State the corresponding interface version adjustment information of current plug-in version of pending plug-in unit.
9. a kind of device of processing plug-in unit, including:
Acquisition module, suitable for obtaining the processing type handled one or more plug-in units;
Generation module is suitable for, according to the corresponding plug-in version adjustable strategies of the processing type, generating to one or more of The configuration file that the plug-in version of plug-in unit is adjusted, wherein the configuration file includes the plug-in version pair of each plug-in unit The interface version adjustment information answered;
Matching module is suitable for obtaining the current plug-in version of pending plug-in unit, by the current plug-in version of the pending plug-in unit It is matched in the configuration file, obtains the corresponding interface version adjustment letter of current plug-in version of the pending plug-in unit Breath;
The corresponding interface version of current plug-in version of processing module, the pending plug-in unit suitable for being obtained using matching is adjusted Information adjusts the current plug-in version of the pending plug-in unit, to handle the pending plug-in unit;
Wherein, the processing type handled one or more plug-in units includes at least one following:
Urgent offline processing is carried out to one or more plug-in units;
It avoids one or more plug-in units and is upgraded to specified plug-in version.
10. device according to claim 9, wherein
The interface version adjustment information includes the minimum interface boards that the plug-in version of each plug-in unit can be supported after the adjustment Sheet and/or highest interface version;
The processing module is further adapted for:
In the corresponding interface version adjustment information of current plug-in version of the pending plug-in unit obtained from matching, institute is extracted State the minimum interface version and/or highest interface version that the current plug-in version of pending plug-in unit can be supported after the adjustment;
The minimum interface version and/or highest interface version that will be extracted, work as anterior plug-in as the pending plug-in unit The interface version that version can be supported.
11. device according to claim 9 or 10, wherein
Further include in the configuration file each plug-in unit the minimum interface version that can be supported before adjustment of plug-in version and/or Highest interface version;
The matching module is further adapted for:
By the current plug-in version of the pending plug-in unit and its minimum interface version and/or highest that can be supported before adjustment Interface version is matched in the configuration file, obtains the corresponding interface of current plug-in version of the pending plug-in unit Version adjustment information.
12. device according to claim 9 or 10, wherein
It further include the corresponding main program version of plug-in version of each plug-in unit in the configuration file;
The matching module is further adapted for:
Obtain the corresponding main program version of current plug-in version of the pending plug-in unit;
By the current plug-in version of the pending plug-in unit and its corresponding main program version, the progress in the configuration file Match, obtains the corresponding interface version adjustment information of current plug-in version of the pending plug-in unit.
13. device according to claim 12, wherein
Further include that the corresponding main program version of plug-in version of each plug-in unit can be supported before adjustment in the configuration file Minimum interface version and/or highest interface version;
The matching module is further adapted for:
Obtain that the corresponding main program version of current plug-in version of the pending plug-in unit can be supported before adjustment minimum connects Mouth version and/or highest interface version;
The current plug-in version of the pending plug-in unit and its corresponding main program version and the main program version are being adjusted Before the minimum interface version that can be supported and/or highest interface version, matched in the configuration file, obtain described wait for Handle the corresponding interface version adjustment information of current plug-in version of plug-in unit.
14. according to claim 9-10,13 any one of them devices, wherein
It further include the corresponding main program version of the plug-in version institute after the adjustment of each plug-in unit in the interface version adjustment information The minimum interface version and/or highest interface version that can be supported;
The processing module is further adapted for:
The corresponding interface version adjustment information of current plug-in version of the pending plug-in unit obtained using matching, described in adjustment The corresponding main program version of current plug-in version of pending plug-in unit, to handle the pending plug-in unit.
15. device according to claim 14, wherein the processing module is further adapted for:
In the corresponding interface version adjustment information of current plug-in version of the pending plug-in unit obtained from matching, institute is extracted State minimum interface version that the corresponding main program version of current plug-in version of pending plug-in unit can be supported after the adjustment and/or Highest interface version;
The minimum interface version and/or highest interface version that will be extracted, work as anterior plug-in as the pending plug-in unit The interface version that the corresponding main program version of version can be supported.
16. according to any one of them device of claim 9-10,13,15, wherein
It further include the plug-in version pair that each plug-in unit is applicable in when applied to its corresponding processing type in the configuration file The interface version adjustment information answered;
The matching module is further adapted for:
Obtain the processing type of the pending plug-in unit;
By the current plug-in version of the pending plug-in unit and processing type, is matched in the configuration file, obtain institute State the corresponding interface version adjustment information of current plug-in version of pending plug-in unit.
CN201510846189.0A 2015-11-26 2015-11-26 Handle the method and device of plug-in unit Active CN105511909B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510846189.0A CN105511909B (en) 2015-11-26 2015-11-26 Handle the method and device of plug-in unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510846189.0A CN105511909B (en) 2015-11-26 2015-11-26 Handle the method and device of plug-in unit

Publications (2)

Publication Number Publication Date
CN105511909A CN105511909A (en) 2016-04-20
CN105511909B true CN105511909B (en) 2018-09-11

Family

ID=55719916

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510846189.0A Active CN105511909B (en) 2015-11-26 2015-11-26 Handle the method and device of plug-in unit

Country Status (1)

Country Link
CN (1) CN105511909B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106933570B (en) * 2017-02-16 2020-10-20 北京临近空间飞行器系统工程研究所 Aerospace test, launch and control software platform based on plug-in technology
CN107229845A (en) * 2017-05-27 2017-10-03 北京小米移动软件有限公司 Plug-in unit processing method, device and terminal in terminal

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102141922A (en) * 2010-01-29 2011-08-03 腾讯科技(深圳)有限公司 Micro kernel pluggable program application system and implementation method thereof
CN102411506A (en) * 2011-07-07 2012-04-11 杭州典能科技有限公司 Java-system business-unit plug-in type managing system and dynamic business-function changing method
US8291312B1 (en) * 2012-03-06 2012-10-16 Google Inc. Displaying web pages without downloading static files
CN103761114A (en) * 2013-10-18 2014-04-30 北京奇虎科技有限公司 Method and device for loading extensions and/or plugins on browser side
CN103914287A (en) * 2012-12-31 2014-07-09 北京讯鸟软件有限公司 Plug-in mechanism based software system and implementation method thereof
CN104008060A (en) * 2014-06-18 2014-08-27 腾讯科技(深圳)有限公司 Method for detecting compatibility of plug-in and host, and detection server
CN104714827A (en) * 2015-03-31 2015-06-17 北京奇虎科技有限公司 Plug-in update method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8108851B2 (en) * 2006-01-30 2012-01-31 International Business Machines Corporation External registration for function configuration within a client platform application
WO2013006226A1 (en) * 2011-07-01 2013-01-10 Exxonmobil Upstream Research Company Plug-in installer framework

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102141922A (en) * 2010-01-29 2011-08-03 腾讯科技(深圳)有限公司 Micro kernel pluggable program application system and implementation method thereof
CN102411506A (en) * 2011-07-07 2012-04-11 杭州典能科技有限公司 Java-system business-unit plug-in type managing system and dynamic business-function changing method
US8291312B1 (en) * 2012-03-06 2012-10-16 Google Inc. Displaying web pages without downloading static files
CN103914287A (en) * 2012-12-31 2014-07-09 北京讯鸟软件有限公司 Plug-in mechanism based software system and implementation method thereof
CN103761114A (en) * 2013-10-18 2014-04-30 北京奇虎科技有限公司 Method and device for loading extensions and/or plugins on browser side
CN104008060A (en) * 2014-06-18 2014-08-27 腾讯科技(深圳)有限公司 Method for detecting compatibility of plug-in and host, and detection server
CN104714827A (en) * 2015-03-31 2015-06-17 北京奇虎科技有限公司 Plug-in update method and device

Also Published As

Publication number Publication date
CN105511909A (en) 2016-04-20

Similar Documents

Publication Publication Date Title
CN105117233B (en) API Calls method and device
CN103810008B (en) Plug-in loading method and system
US10466998B2 (en) Model based upgrade campaign generation
CN104714827B (en) Update of plug-in method and device
US7475396B2 (en) Method and apparatus for defining, building and deploying pluggable and independently configurable install components
CN104991790B (en) The upgrading dissemination method and device of a kind of file
CN107506219A (en) A kind of general version upgrade method based on android system
EP2275929A1 (en) Efficient software patching
US8443084B2 (en) Enhanced upgrade path
US20060123409A1 (en) Method and apparatus for creating a pluggable, prioritized configuration engine to be used for configuring a software during installation, update and new profile creation
CN104133699B (en) Device system software upgrade method and system
CN111767704B (en) Excel form template generation method and device
CN107301070A (en) A kind of upgrade method and terminal
CN105511909B (en) Handle the method and device of plug-in unit
CN105763626A (en) SDK initialization method suitable for application client end payment
CN107329794A (en) A kind of issue firmware, the method and system of firmware updating
CN112953983A (en) SFTP transmission method and device
CN106201591A (en) The configuration file upgrade method of a kind of cloud management platform and device
CN106484452B (en) unified configuration management method and device for software platform
CN110990051B (en) Maintenance method, device, medium and equipment for software package dependency relationship
CN104391733B (en) A kind of method according to dependence on-the-flier compiler software kit
CN107704277A (en) Plug-in loading method and system
CN107729043B (en) Method and device for checking increment upgrade package and computer readable storage medium
CN106528206A (en) Application starting control method and apparatus, and application installation package reinforcement apparatus
CN109639487B (en) Policy configuration method, device, network equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220714

Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.