CN103294456A - Automatic publishing method and device of business plug-ins - Google Patents
Automatic publishing method and device of business plug-ins Download PDFInfo
- Publication number
- CN103294456A CN103294456A CN2012100474865A CN201210047486A CN103294456A CN 103294456 A CN103294456 A CN 103294456A CN 2012100474865 A CN2012100474865 A CN 2012100474865A CN 201210047486 A CN201210047486 A CN 201210047486A CN 103294456 A CN103294456 A CN 103294456A
- Authority
- CN
- China
- Prior art keywords
- structure variable
- unit
- variable
- released
- issuing service
- 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.)
- Pending
Links
Images
Landscapes
- Stored Programmes (AREA)
Abstract
The invention discloses an automatic publishing method and device of business plug-ins. The method comprises the steps as follows: a structure variable of a to-be-published business plug-in and a structure variable of a published business plug-in are obtained; whether the structure variable of the to-be-published business plug-in and the structure variable of the published business plug-in are identical is compared; and whether the to-be-published business plug-in is published or not is determined according to a comparison result. According to the automatic publishing method and device of the business plug-ins, a scanning and comparison manner of the structure variables is provided, and all the structure variables affecting the publishing of the business plug-ins can be detected, so that the business plug-ins can be published successfully, and the popularizing rate of internet service is increased.
Description
Technical field
The present invention relates to field of computer technology, relate in particular to a kind of method for automatically releasing and equipment of professional plug-in unit.
Background technology
Along with the IM(instant messaging) the popularizing of software, single chat feature can not satisfy the diversified demand of user, and increasing company loads various Internet services at IM software.For example, carried a large amount of Internet service (entering QQ mailbox and QQ space etc. as a key) on the QQ software.It should be noted that the function of Internet service along with IM software is handed down to the user, namely need the function of Internet service is bundled in the latest edition of IM software, release then; Therefore, in order to experience new Internet service, the user need download the latest edition of IM software could experience these Internet services.
In realizing process of the present invention, the inventor finds to exist at least in the prior art following problem:
Because new Internet service can only be bundled in the latest edition of IM software, cause still can't experiencing new Internet service the user who uses early version; And in order to experience Internet service, the user need download the IM software of latest edition, has influenced user's use impression, and is unfavorable for the popularization of Internet service.
Summary of the invention
The embodiment of the invention provides a kind of method for automatically releasing and equipment of professional plug-in unit, to improve the popularity rate of Internet service.
In order to achieve the above object, the embodiment of the invention provides a kind of method for automatically releasing of professional plug-in unit, and this method comprises:
Obtain the structure variable of professional plug-in unit to be released and the structure variable of issuing service software;
Whether the structure variable of more described professional plug-in unit to be released is identical with the structure variable of the described software of issuing service;
Determine whether to issue professional plug-in unit to be released according to comparative result.
Preferably, the structure variable of described acquisition professional plug-in unit to be released and the structure variable of issuing service software comprise:
All Files to described professional plug-in unit correspondence to be released scans, and obtains the structure variable of described professional plug-in unit to be released; And, the All Files of the described software of issuing service correspondence is scanned, obtain the structure variable of the described software of issuing service;
Wherein, the root of described professional plug-in unit to be released and the described software of issuing service is Solution, and several Project have formed a Solution, and several files have been formed a Project.
Preferably, file is scanned the process that obtains the structure variable, further comprises:
From file, obtain to be nested into the structure variable of specifying in the classification, and utilize the DTE automation model from file, to obtain not by nested configuration body variable;
The described structure variable of specifying in the classification that is nested into comprises one of following or combination in any: be nested into structure variable in the class, be nested into structure variable in the name space, be nested into the structure variable in the function and be nested into structure variable in the structure variable.
Preferably, the structure variable of described acquisition professional plug-in unit to be released and the structure variable of issuing service software also comprise afterwards:
In the ls_struct of MySQL database table, preserve the structure variable of described professional plug-in unit to be released and the structure variable of the described software of issuing service, and in the ls_struct_details of described MySQL database table, preserve the member of the structure variable of the member of structure variable of described professional plug-in unit to be released and the described software of issuing service.
Preferably, whether the structure variable of more described professional plug-in unit to be released is identical with the structure variable of the described software of issuing service, comprising:
Inquiry ls_struct table obtains the structure variable of described professional plug-in unit to be released and the structure variable of the described software of issuing service, and described ls_struct table is used for storage configuration body variable;
Only be the structure variable of described professional plug-in unit to be released as the structure variable, when perhaps having the structure variable only to be the structure variable of the described software of issuing service, determine that then the structure variable of described professional plug-in unit to be released is different with the structure variable of the described software of issuing service;
When there not being the structure variable only to be the structure variable of described professional plug-in unit to be released, and when not having the structure variable only to be the structure variable of the described software of issuing service, then whether the structure variable by the more described professional plug-in unit to be released of inquiry ls_struct_details table is identical with the structure variable of the described software of issuing service; Described ls_struct_details table is used for the member of storage configuration body variable.
Preferably, whether described structure variable by the more described professional plug-in unit to be released of inquiry ls_struct_details table is identical with the structure variable of the described software of issuing service, further comprises:
Inquire about described ls_struct_details table, obtain all members of the structure variable of all members of structure variable of described professional plug-in unit to be released and the described software of issuing service;
Member as the structure variable only is the member of the structure variable of described professional plug-in unit to be released, the member that the structure variable perhaps arranged determines that then the structure variable of described professional plug-in unit to be released is different with the structure variable of the described software of issuing service during only for the member of the structure variable of the described software of issuing service;
When the member who does not have the structure variable only is the member of the structure variable of described professional plug-in unit to be released, and the member who does not have a structure variable is during only for the member of the structure variable of the described software of issuing service, and then whether all members' values of the structure variable of more described professional plug-in unit to be released are worth identical with all members of the structure variable of the described software of issuing service;
If there is the member of structure variable to be worth difference, determine that then the structure variable of described professional plug-in unit to be released is different with the structure variable of the described software of issuing service; Otherwise, determine that the structure variable of described professional plug-in unit to be released is identical with the structure variable of the described software of issuing service.
Preferably, the member of described structure variable comprises one of following or combination in any:
Name name, type type, position pos, sub-position subpos;
Described subpos is used for all member's positional values that expression is nested in inner structure body variable;
If type is member function, then name is full name of this member function; If type is member variable, then name is this member variable name.
The embodiment of the invention provides a kind of automatic distribution apparatus of professional plug-in unit, and this equipment comprises:
Obtain module, be used for obtaining the structure variable of professional plug-in unit to be released and the structure variable of issuing service software;
Comparison module, whether the structure variable that is used for more described professional plug-in unit to be released is identical with the structure variable of the described software of issuing service;
Determination module is used for determining whether to issue professional plug-in unit to be released according to comparative result.
Preferably, described acquisition module, concrete being used for scanned the All Files of described professional plug-in unit correspondence to be released, obtains the structure variable of described professional plug-in unit to be released; And, the All Files of the described software of issuing service correspondence is scanned, obtain the structure variable of the described software of issuing service;
Wherein, the root of described professional plug-in unit to be released and the described software of issuing service is Solution, and several Project have formed a Solution, and several files have been formed a Project.
Preferably, described acquisition module is further used for obtaining to be nested into the structure variable of specifying in the classification from file, and utilizes the DTE automation model to obtain from file not by nested configuration body variable;
The described structure variable of specifying in the classification that is nested into comprises one of following or combination in any: be nested into structure variable in the class, be nested into structure variable in the name space, be nested into the structure variable in the function and be nested into structure variable in the structure variable.
Preferably, also comprise: memory module, be used at the structure variable that obtains professional plug-in unit to be released and after the structure variable of issuing service software, in the ls_struct of MySQL database table, preserve the structure variable of described professional plug-in unit to be released and the structure variable of the described software of issuing service, and in the ls_struct_details of described MySQL database table, preserve the member of the structure variable of the member of structure variable of described professional plug-in unit to be released and the described software of issuing service.
Preferably, described comparison module, the concrete inquiry ls_struct table that is used for obtains the structure variable of described professional plug-in unit to be released and the structure variable of the described software of issuing service, and described ls_struct table is used for storage configuration body variable;
Only be the structure variable of described professional plug-in unit to be released as the structure variable, when perhaps having the structure variable only to be the structure variable of the described software of issuing service, determine that then the structure variable of described professional plug-in unit to be released is different with the structure variable of the described software of issuing service;
When there not being the structure variable only to be the structure variable of described professional plug-in unit to be released, and when not having the structure variable only to be the structure variable of the described software of issuing service, then whether the structure variable by the more described professional plug-in unit to be released of inquiry ls_struct_details table is identical with the structure variable of the described software of issuing service; Described ls_struct_details table is used for the member of storage configuration body variable.
Preferably, described comparison module is further used for inquiring about described ls_struct_details table, obtains all members of the structure variable of all members of structure variable of described professional plug-in unit to be released and the described software of issuing service;
Member as the structure variable only is the member of the structure variable of described professional plug-in unit to be released, the member that the structure variable perhaps arranged determines that then the structure variable of described professional plug-in unit to be released is different with the structure variable of the described software of issuing service during only for the member of the structure variable of the described software of issuing service;
When the member who does not have the structure variable only is the member of the structure variable of described professional plug-in unit to be released, and the member who does not have a structure variable is during only for the member of the structure variable of the described software of issuing service, and then whether all members' values of the structure variable of more described professional plug-in unit to be released are worth identical with all members of the structure variable of the described software of issuing service;
If there is the member of structure variable to be worth difference, determine that then the structure variable of described professional plug-in unit to be released is different with the structure variable of the described software of issuing service; Otherwise, determine that the structure variable of described professional plug-in unit to be released is identical with the structure variable of the described software of issuing service.
Preferably, the member of described structure variable comprises one of following or combination in any:
Name name, type type, position pos, sub-position subpos;
Described subpos is used for all member's positional values that expression is nested in inner structure body variable;
If type is member function, then name is full name of this member function; If type is member variable, then name is this member variable name.
Compared with prior art, the embodiment of the invention has the following advantages at least: in the embodiment of the invention, by scanning and the manner of comparison that a kind of structure variable is provided, can detect the structure variable of influential professional plug-in unit issue, can issue the popularity rate of raising Internet service smoothly to guarantee professional plug-in unit.
Description of drawings
In order to be illustrated more clearly in technical scheme of the present invention, the accompanying drawing of required use is done to introduce simply in will describing embodiment below, apparently, accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the method for automatically releasing schematic flow sheet of a kind of professional plug-in unit of providing of the embodiment of the invention one;
Fig. 2 is the scanning logic synoptic diagram of structure variable in the embodiment of the invention one;
Fig. 3 is the structural representation that ls_struct shows and ls_struct_details shows in the embodiment of the invention one;
Fig. 4 is the structure variable of professional plug-in unit more to be released in the embodiment of the invention one and the structure variable of issuing service software identical process synoptic diagram whether;
Fig. 5 is the structural representation of the automatic distribution apparatus of a kind of professional plug-in unit of providing of the embodiment of the invention two.
Embodiment
Below in conjunction with the accompanying drawing among the present invention, the technical scheme among the present invention is clearly and completely described, obviously, described embodiment only is a part of embodiment of the present invention, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
Embodiment one
Because new Internet service (new function and service) can only be bundled in the latest edition of business software (as IM software), causes still can't experiencing new Internet service the user who uses early version; And in order to experience Internet service, the user need download the business software of latest edition, has influenced user's use impression; Based on this, the concept of professional plug-in unit upgrading has been proposed; Wherein, professional plug-in unit is the various Internet services of carrying on the business software, with scale-of-two DLL(Dynamic Link Library, dynamic link library) the form existence; Professional plug-in unit upgrades to not along with the business software issue Internet service of latest edition, and Internet service is pushed directly on the business software of externally issue with independent plug-in unit DLL form.
Concrete, in order to realize professional plug-in unit upgrading, need (it be professional plug-in unit to be released with professional plug-in unit, be used for to realize new Internet service) (it is issuing service software to be published to the current business software of having issued, business software for the current use of user, can be the IM software of early version) on, this mode does not need new Internet service is bundled in the business software of latest edition, and the user can experience new Internet service, thereby promoted the spreading speed of business function, for the development of business provides promotion.
Further, the issue of professional plug-in unit to be released need depend on derivative function, interface, enumerated value and structure; When the derivative function of professional plug-in unit to be released identical with the derivative function of issuing service software, and the interface of professional plug-in unit to be released is identical with the interface of issuing service software, and the enumerated value of professional plug-in unit to be released is identical with the enumerated value of issuing service software, and when the structure of the structure of professional plug-in unit to be released and issuing service software is identical, then can carry out the issue of professional plug-in unit to be released, realize professional plug-in unit upgrading; Otherwise, can not carry out the issue of professional plug-in unit to be released.
Based on this, in order to guarantee the smooth issue of professional plug-in unit to be released, can develop a testing tool, by monitoring the derivative function of professional plug-in unit to be released, interface, enumerated value and structure, and and the derivative function of issuing service software, interface, enumerated value and structure compare; Then determine whether to carry out the issue of professional plug-in unit to be released, to realize professional plug-in unit upgrading.
It should be noted that for derivative function, interface, the detection of enumerated value etc. and comparison procedure repeat no more in the embodiment of the invention, follow-uply are all example with homogeneous phase and describe; Structure is one of data type of configuration program code, is made up of a plurality of basic data types, belongs to the most frequently used and the most complicated element; The structure variable is the variable of structure type, for one of types of variables of configuration program code, is made up of a plurality of member variables; Detection architecture body variable how, and whether comparative structure body variable is identical, whether influences the issue of professional plug-in unit to be released to judge the structure variable, the embodiment of the invention will describe in detail.
Based on above-mentioned analysis, the embodiment of the invention one provides a kind of method for automatically releasing of professional plug-in unit, by detection and the manner of comparison that a kind of structure variable is provided, to guarantee to detect structure variable and the structure variable in the issuing service software in the professional plug-in unit to be released, and the structure variable is carried out the comparison of efficiently and accurately, whether can carry out the issue of professional plug-in unit to be released thereby determine, to realize professional plug-in unit upgrading; As shown in Figure 1, comprise can following steps for this method:
Step 101 obtains the structure variable of professional plug-in unit to be released and the structure variable of issuing service software.In actual applications, can develop a testing tool, have in this testing tool for the SnapAddin plug-in unit that obtains the structure variable, namely can scan professional plug-in unit to be released and issuing service software by the SnapAddin plug-in unit, obtain all structure variablees and all structure variablees in the issuing service software in the professional plug-in unit to be released.
In the embodiment of the invention, because the structure variable is relevant with source code, need to obtain the structure variable by the scan source code; And professional plug-in unit to be released and the root of issuing service software be Solution, several Project form a Solution, several files are formed a Project; Therefore file is the least unit of Scan Architecture body variable, need carry out the scanning of each file successively, is scanned up to All Files to finish, and obtains the structure variable in the file; Concrete, obtain the structure variable of professional plug-in unit to be released and the structure variable of issuing service software comprise: the All Files for the treatment of issuing service plug-in unit correspondence scans, and obtains the structure variable of professional plug-in unit to be released; And the All Files of issuing service software correspondence scanned, obtain the structure variable of issuing service software.
In the embodiment of the invention, can from file, obtain to be nested into the structure variable of specifying in the classification, and utilize the DTE automation model from file, to obtain not by nested configuration body variable; Wherein, this is nested into the structure variable of specifying in the classification and includes but not limited to one of following or combination in any: be nested into structure variable in the class, be nested into structure variable in the name space, be nested into the structure variable in the function and be nested into structure variable in the structure variable.
As shown in Figure 2, be the scanning logic synoptic diagram of structure variable, the DTE automation model provides a cover automation interface, can utilize the DTE automation model to identify simple structure variable, obtains not by nested configuration body variable; In actual applications, the structure type is very complicated, the structure variable can be nested in class, name space (NameSpace), in the elaborated code elements such as function, but and structure variable nested structure body variable also itself, therefore need be on the basis of DTE automation model, increase makes all structure variablees all can be scanned to analysis and the processing of the structure variable of complicated type.
The structure variable of above-mentioned complicated type comprises: is nested into structure variable in the class, is nested into structure variable in the name space, is nested into structure variable in the function, is nested into the situations such as structure variable in the structure variable, and more complicated three layers even multilayer nest; In these cases, need further recursive analysis, to obtain simple structure variable.
In addition, structure variable itself can also comprise member function except member variable; And because the structure member variable is slightly different with member function, therefore can also increase a member function processing module, so that member function is handled, give unnecessary details no longer in detail at this.
In sum, in the embodiment of the invention, on the basis of source code and DTE automation model, a kind of scan mode of structure variable has been proposed, can detect the structure variable of influential professional plug-in unit upgrading, guarantee that professional plug-in unit can realize cross-version upgrading smoothly, improve the popularity rate of Internet service.
In the embodiment of the invention, at the structure variable that has obtained professional plug-in unit to be released and after the structure variable of issuing service software, need with the structure variable of professional plug-in unit to be released and the structure variable storage of issuing service software in the MySQL database.
In order to accelerate relative efficiency, simplify relatively flow process, and consider the situation of structure variable, in a kind of preferred implementation of the embodiment of the invention, as shown in Figure 3, can design ls_struct table (being used for storage configuration body variable) and ls_struct_details table (all members that are used for storage configuration body variable), and in the ls_struct of MySQL database table, preserve the structure variable of professional plug-in unit to be released and the structure variable of issuing service software, in the ls_struct_details of MySQL database table, preserve member and the member of the structure variable of issuing service software of the structure variable of professional plug-in unit to be released.
Need to prove that the member of this structure variable includes but not limited to one of following or combination in any: name (name), type (type), position (pos), sub-position (subpos); Wherein, in order to solve the nested problem of structure variable, introduced this member of subpos, this subpos is used for all member's positional values that expression is nested in inner structure body variable, for example, if the non-nesting situation, then this is worth for selecting arbitrarily in the 0(practical application); In addition, if type is member function, then name is full name (by function return value, the special string that function name, all parameters are stitched together and form) of this member function; If type is member variable, then name is this member variable name.
In this step, as shown in Figure 4, whether the structure variable of the structure variable of professional plug-in unit more to be released and issuing service software identical process, specifically comprises:
Inquiry ls_struct table obtains the structure variable of professional plug-in unit to be released and the structure variable of issuing service software; And the structure variable of the professional plug-in unit to be released that relatively obtains one by one and the structure variable of issuing service software.
When the structure variable only is the structure variable of professional plug-in unit to be released, then illustrate in the professional plug-in unit to be released and increased the structure variable, determine under this situation that the structure variable of professional plug-in unit to be released is different with the structure variable of issuing service software, the end comparison procedure; Perhaps, when the structure variable only is the structure variable of issuing service software, then illustrate in the professional plug-in unit to be released and deleted the structure variable, determine under this situation that the structure variable of professional plug-in unit to be released is different with the structure variable of issuing service software, the end comparison procedure.
When there not being the structure variable only to be the structure variable of professional plug-in unit to be released, and it is when not having the structure variable only for the structure variable of issuing service software, then whether identical with the structure variable of issuing service software by the structure variable of inquiry ls_struct_details table professional plug-in unit more to be released.
Concrete, inquiry ls_struct_details table obtains all members and all members of the structure variable of issuing service software of the structure variable of professional plug-in unit to be released; And all members of the structure variable of the professional plug-in unit to be released that relatively obtains one by one and whether all members of the structure variable of issuing service software identical,
When the member of structure variable only is the member of structure variable of professional plug-in unit to be released, the member who has increased the structure variable in the professional plug-in unit to be released then is described, determine under this situation that the structure variable of professional plug-in unit to be released is different with the structure variable of issuing service software, the end comparison procedure; Perhaps, when the member of structure variable only is the member of structure variable of issuing service software, the member who has deleted the structure variable in the professional plug-in unit to be released then is described, determine under this situation that the structure variable of professional plug-in unit to be released is different with the structure variable of issuing service software, the end comparison procedure.
When the member who does not have the structure variable only is the member of the structure variable of professional plug-in unit to be released, and the member who does not have a structure variable is during only for the member of the structure variable of issuing service software, and then whether all members' values of the structure variable of professional plug-in unit more to be released are worth identical with all members of the structure variable of issuing service software; If there is the member of structure variable to be worth difference, determine that then the structure variable of professional plug-in unit to be released is different with the structure variable of issuing service software, the end comparison procedure; If it is identical that the member of all structure variablees is worth, determine that then the structure variable of professional plug-in unit to be released is identical with the structure variable of issuing service software, the end comparison procedure.
In sum, in the embodiment of the invention, by with the structure variable of professional plug-in unit to be released and the structure variable storage of issuing service software in the MySQL database; And further by ls_struct table storage configuration body variable, and all members that show storage configuration body variable by ls_struct_details, thereby based on this a kind of manner of comparison of structure variable has been proposed, whether can compare the structure variable identical, can realize the cross-version upgrading smoothly, the popularity rate of raising Internet service to guarantee professional plug-in unit.
Step 103 determines whether to issue professional plug-in unit to be released according to comparative result, realizes professional plug-in unit upgrading.Wherein, when comparative structure when to be the structure variable of professional plug-in unit to be released identical with the structure variable of issuing service software, then determine to issue professional plug-in unit to be released, realize professional plug-in unit upgrading; To be the structure variable of professional plug-in unit to be released different not simultaneously with the structure variable of issuing service software when comparative structure, then determine to issue professional plug-in unit to be released, can't realize professional plug-in unit upgrading.
Further, after having determined whether to issue professional plug-in unit to be released, can export last mail as a result, to provide the judgement whether professional plug-in unit can upgrade.
In sum, in the embodiment of the invention, by scanning and the manner of comparison that a kind of structure variable is provided, can detect the structure variable of influential professional plug-in unit issue, can issue smoothly to guarantee professional plug-in unit, improve the popularity rate of Internet service.
Embodiment two
Based on the inventive concept same with said method, a kind of automatic distribution apparatus of professional plug-in unit also is provided in the embodiment of the invention, as shown in Figure 5, this equipment comprises:
Obtain module 51, be used for obtaining the structure variable of professional plug-in unit to be released and the structure variable of issuing service software;
Described acquisition module 51, concrete being used for scanned the All Files of described professional plug-in unit correspondence to be released, obtains the structure variable of described professional plug-in unit to be released; And, the All Files of the described software of issuing service correspondence is scanned, obtain the structure variable of the described software of issuing service; Wherein, the root of described professional plug-in unit to be released and the described software of issuing service is Solution, and several Project have formed a Solution, and several files have been formed a Project.
Described acquisition module 51 is further used for obtaining to be nested into the structure variable of specifying in the classification from file, and utilizes the DTE automation model to obtain from file not by nested configuration body variable; The described structure variable of specifying in the classification that is nested into comprises one of following or combination in any: be nested into structure variable in the class, be nested into structure variable in the name space, be nested into the structure variable in the function and be nested into structure variable in the structure variable.
This equipment also comprises: memory module 54, be used at the structure variable that obtains professional plug-in unit to be released and after the structure variable of issuing service software, in the ls_struct of MySQL database table, preserve the structure variable of described professional plug-in unit to be released and the structure variable of the described software of issuing service, and in the ls_struct_details of described MySQL database table, preserve the member of the structure variable of the member of structure variable of described professional plug-in unit to be released and the described software of issuing service.
Described comparison module 52, the concrete inquiry ls_struct table that is used for obtains the structure variable of described professional plug-in unit to be released and the structure variable of the described software of issuing service, and described ls_struct table is used for storage configuration body variable; Only be the structure variable of described professional plug-in unit to be released as the structure variable, when perhaps having the structure variable only to be the structure variable of the described software of issuing service, determine that then the structure variable of described professional plug-in unit to be released is different with the structure variable of the described software of issuing service; When there not being the structure variable only to be the structure variable of described professional plug-in unit to be released, and when not having the structure variable only to be the structure variable of the described software of issuing service, then whether the structure variable by the more described professional plug-in unit to be released of inquiry ls_struct_details table is identical with the structure variable of the described software of issuing service; Described ls_struct_details table is used for the member of storage configuration body variable.
Described comparison module 52 is further used for inquiring about described ls_struct_details table, obtains all members of the structure variable of all members of structure variable of described professional plug-in unit to be released and the described software of issuing service; Member as the structure variable only is the member of the structure variable of described professional plug-in unit to be released, the member that the structure variable perhaps arranged determines that then the structure variable of described professional plug-in unit to be released is different with the structure variable of the described software of issuing service during only for the member of the structure variable of the described software of issuing service; When the member who does not have the structure variable only is the member of the structure variable of described professional plug-in unit to be released, and the member who does not have a structure variable is during only for the member of the structure variable of the described software of issuing service, and then whether all members' values of the structure variable of more described professional plug-in unit to be released are worth identical with all members of the structure variable of the described software of issuing service; If there is the member of structure variable to be worth difference, determine that then the structure variable of described professional plug-in unit to be released is different with the structure variable of the described software of issuing service; Otherwise, determine that the structure variable of described professional plug-in unit to be released is identical with the structure variable of the described software of issuing service.
In the embodiment of the invention, the member of described structure variable comprises one of following or combination in any: name name, type type, position pos, sub-position subpos; Described subpos is used for all member's positional values that expression is nested in inner structure body variable; If type is member function, then name is full name of this member function; If type is member variable, then name is this member variable name.
Wherein, each module of apparatus of the present invention can be integrated in one, and also can separate deployment.Above-mentioned module can be merged into a module, also can further split into a plurality of submodules.
Through the above description of the embodiments, those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential general hardware platform, can certainly pass through hardware, but the former is better embodiment under a lot of situation.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product is stored in the storage medium, comprise that some instructions are with so that a computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out the described method of each embodiment of the present invention.
It will be appreciated by those skilled in the art that accompanying drawing is the synoptic diagram of a preferred embodiment, the module in the accompanying drawing or flow process might not be that enforcement the present invention is necessary.
It will be appreciated by those skilled in the art that the module in the device among the embodiment can be distributed in the device of embodiment according to the embodiment description, also can carry out respective change and be arranged in the one or more devices that are different from present embodiment.The module of above-described embodiment can be merged into a module, also can further split into a plurality of submodules.
The invention described above embodiment sequence number does not represent the quality of embodiment just to description.
More than disclosed only be several specific embodiment of the present invention, still, the present invention is not limited thereto, any those skilled in the art can think variation all should fall into protection scope of the present invention.
Claims (14)
1.
A kind of method for automatically releasing of professional plug-in unit is characterized in that, this method comprises:
Obtain the structure variable of professional plug-in unit to be released and the structure variable of issuing service software;
Whether the structure variable of more described professional plug-in unit to be released is identical with the structure variable of the described software of issuing service;
Determine whether to issue professional plug-in unit to be released according to comparative result.
2.
The method of claim 1 is characterized in that, the structure variable of described acquisition professional plug-in unit to be released and the structure variable of issuing service software comprise:
All Files to described professional plug-in unit correspondence to be released scans, and obtains the structure variable of described professional plug-in unit to be released; And, the All Files of the described software of issuing service correspondence is scanned, obtain the structure variable of the described software of issuing service;
Wherein, the root of described professional plug-in unit to be released and the described software of issuing service is Solution, and several Project have formed a Solution, and several files have been formed a Project.
3.
Method as claimed in claim 2 is characterized in that, file is scanned the process that obtains the structure variable, further comprises:
From file, obtain to be nested into the structure variable of specifying in the classification, and utilize the DTE automation model from file, to obtain not by nested configuration body variable;
The described structure variable of specifying in the classification that is nested into comprises one of following or combination in any: be nested into structure variable in the class, be nested into structure variable in the name space, be nested into the structure variable in the function and be nested into structure variable in the structure variable.
4.
The method of claim 1 is characterized in that, the structure variable of described acquisition professional plug-in unit to be released and the structure variable of issuing service software also comprise afterwards:
In the ls_struct of MySQL database table, preserve the structure variable of described professional plug-in unit to be released and the structure variable of the described software of issuing service, and in the ls_struct_details of described MySQL database table, preserve the member of the structure variable of the member of structure variable of described professional plug-in unit to be released and the described software of issuing service.
5.
The method of claim 1 is characterized in that, whether the structure variable of more described professional plug-in unit to be released is identical with the structure variable of the described software of issuing service, comprising:
Inquiry ls_struct table obtains the structure variable of described professional plug-in unit to be released and the structure variable of the described software of issuing service, and described ls_struct table is used for storage configuration body variable;
Only be the structure variable of described professional plug-in unit to be released as the structure variable, when perhaps having the structure variable only to be the structure variable of the described software of issuing service, determine that then the structure variable of described professional plug-in unit to be released is different with the structure variable of the described software of issuing service;
When there not being the structure variable only to be the structure variable of described professional plug-in unit to be released, and when not having the structure variable only to be the structure variable of the described software of issuing service, then whether the structure variable by the more described professional plug-in unit to be released of inquiry ls_struct_details table is identical with the structure variable of the described software of issuing service; Described ls_struct_details table is used for the member of storage configuration body variable.
6.
Method as claimed in claim 5 is characterized in that, whether described structure variable by the more described professional plug-in unit to be released of inquiry ls_struct_details table is identical with the structure variable of the described software of issuing service, further comprises:
Inquire about described ls_struct_details table, obtain all members of the structure variable of all members of structure variable of described professional plug-in unit to be released and the described software of issuing service;
Member as the structure variable only is the member of the structure variable of described professional plug-in unit to be released, the member that the structure variable perhaps arranged determines that then the structure variable of described professional plug-in unit to be released is different with the structure variable of the described software of issuing service during only for the member of the structure variable of the described software of issuing service;
When the member who does not have the structure variable only is the member of the structure variable of described professional plug-in unit to be released, and the member who does not have a structure variable is during only for the member of the structure variable of the described software of issuing service, and then whether all members' values of the structure variable of more described professional plug-in unit to be released are worth identical with all members of the structure variable of the described software of issuing service;
If there is the member of structure variable to be worth difference, determine that then the structure variable of described professional plug-in unit to be released is different with the structure variable of the described software of issuing service; Otherwise, determine that the structure variable of described professional plug-in unit to be released is identical with the structure variable of the described software of issuing service.
7.
As claim 5 or 6 described methods, it is characterized in that the member of described structure variable comprises one of following or combination in any:
Name name, type type, position pos, sub-position subpos;
Described subpos is used for all member's positional values that expression is nested in inner structure body variable;
If type is member function, then name is full name of this member function; If type is member variable, then name is this member variable name.
8.
A kind of automatic distribution apparatus of professional plug-in unit is characterized in that, this equipment comprises:
Obtain module, be used for obtaining the structure variable of professional plug-in unit to be released and the structure variable of issuing service software;
Comparison module, whether the structure variable that is used for more described professional plug-in unit to be released is identical with the structure variable of the described software of issuing service;
Determination module is used for determining whether to issue professional plug-in unit to be released according to comparative result.
9.
Equipment as claimed in claim 8 is characterized in that,
Described acquisition module, concrete being used for scanned the All Files of described professional plug-in unit correspondence to be released, obtains the structure variable of described professional plug-in unit to be released; And, the All Files of the described software of issuing service correspondence is scanned, obtain the structure variable of the described software of issuing service;
Wherein, the root of described professional plug-in unit to be released and the described software of issuing service is Solution, and several Project have formed a Solution, and several files have been formed a Project.
10.
Equipment as claimed in claim 9 is characterized in that,
Described acquisition module is further used for obtaining to be nested into the structure variable of specifying in the classification from file, and utilizes the DTE automation model to obtain from file not by nested configuration body variable;
The described structure variable of specifying in the classification that is nested into comprises one of following or combination in any: be nested into structure variable in the class, be nested into structure variable in the name space, be nested into the structure variable in the function and be nested into structure variable in the structure variable.
11.
Equipment as claimed in claim 8 is characterized in that, also comprises:
Memory module, be used at the structure variable that obtains professional plug-in unit to be released and after the structure variable of issuing service software, in the ls_struct of MySQL database table, preserve the structure variable of described professional plug-in unit to be released and the structure variable of the described software of issuing service, and in the ls_struct_details of described MySQL database table, preserve the member of the structure variable of the member of structure variable of described professional plug-in unit to be released and the described software of issuing service.
12.
Equipment as claimed in claim 8 is characterized in that,
Described comparison module, the concrete inquiry ls_struct table that is used for obtains the structure variable of described professional plug-in unit to be released and the structure variable of the described software of issuing service, and described ls_struct table is used for storage configuration body variable;
Only be the structure variable of described professional plug-in unit to be released as the structure variable, when perhaps having the structure variable only to be the structure variable of the described software of issuing service, determine that then the structure variable of described professional plug-in unit to be released is different with the structure variable of the described software of issuing service;
When there not being the structure variable only to be the structure variable of described professional plug-in unit to be released, and when not having the structure variable only to be the structure variable of the described software of issuing service, then whether the structure variable by the more described professional plug-in unit to be released of inquiry ls_struct_details table is identical with the structure variable of the described software of issuing service; Described ls_struct_details table is used for the member of storage configuration body variable.
13.
Equipment as claimed in claim 12 is characterized in that,
Described comparison module is further used for inquiring about described ls_struct_details table, obtains all members of the structure variable of all members of structure variable of described professional plug-in unit to be released and the described software of issuing service;
Member as the structure variable only is the member of the structure variable of described professional plug-in unit to be released, the member that the structure variable perhaps arranged determines that then the structure variable of described professional plug-in unit to be released is different with the structure variable of the described software of issuing service during only for the member of the structure variable of the described software of issuing service;
When the member who does not have the structure variable only is the member of the structure variable of described professional plug-in unit to be released, and the member who does not have a structure variable is during only for the member of the structure variable of the described software of issuing service, and then whether all members' values of the structure variable of more described professional plug-in unit to be released are worth identical with all members of the structure variable of the described software of issuing service;
If there is the member of structure variable to be worth difference, determine that then the structure variable of described professional plug-in unit to be released is different with the structure variable of the described software of issuing service; Otherwise, determine that the structure variable of described professional plug-in unit to be released is identical with the structure variable of the described software of issuing service.
14.
As claim 12 or 13 described equipment, it is characterized in that the member of described structure variable comprises one of following or combination in any:
Name name, type type, position pos, sub-position subpos;
Described subpos is used for all member's positional values that expression is nested in inner structure body variable;
If type is member function, then name is full name of this member function; If type is member variable, then name is this member variable name.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012100474865A CN103294456A (en) | 2012-02-28 | 2012-02-28 | Automatic publishing method and device of business plug-ins |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012100474865A CN103294456A (en) | 2012-02-28 | 2012-02-28 | Automatic publishing method and device of business plug-ins |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103294456A true CN103294456A (en) | 2013-09-11 |
Family
ID=49095400
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2012100474865A Pending CN103294456A (en) | 2012-02-28 | 2012-02-28 | Automatic publishing method and device of business plug-ins |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103294456A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107578338A (en) * | 2017-07-26 | 2018-01-12 | 阿里巴巴集团控股有限公司 | A kind of service publishing method, device and equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2003102722A2 (en) * | 2002-05-01 | 2003-12-11 | Bea Systems, Inc. | Collaborative business plug-in framework |
CN101119517A (en) * | 2007-07-12 | 2008-02-06 | 深圳市融合视讯科技有限公司 | Method of automatic downloading software from network server |
CN101566954A (en) * | 2009-05-31 | 2009-10-28 | 珠海金山软件股份有限公司 | Method and device for managing plug-in |
CN101840340A (en) * | 2009-02-20 | 2010-09-22 | 国际商业机器公司 | Test system configuration method and system |
-
2012
- 2012-02-28 CN CN2012100474865A patent/CN103294456A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2003102722A2 (en) * | 2002-05-01 | 2003-12-11 | Bea Systems, Inc. | Collaborative business plug-in framework |
CN101119517A (en) * | 2007-07-12 | 2008-02-06 | 深圳市融合视讯科技有限公司 | Method of automatic downloading software from network server |
CN101840340A (en) * | 2009-02-20 | 2010-09-22 | 国际商业机器公司 | Test system configuration method and system |
CN101566954A (en) * | 2009-05-31 | 2009-10-28 | 珠海金山软件股份有限公司 | Method and device for managing plug-in |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107578338A (en) * | 2017-07-26 | 2018-01-12 | 阿里巴巴集团控股有限公司 | A kind of service publishing method, device and equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109684053B (en) | Task scheduling method and system for big data | |
CN105446799A (en) | Method and system for performing rule management in computer system | |
US10013339B2 (en) | System and method for automating testing without scripting | |
CN102236672A (en) | Method and device for importing data | |
CN104572085A (en) | Method and device for analyzing application program | |
CN106557419B (en) | Program testing method and device | |
CN103473076A (en) | Issuing method and issuing system for code version | |
CN110889582A (en) | Method for realizing PBOM visualization based on Teamcenter | |
CN108629052B (en) | Kettle task scheduling method, system, computer equipment and storage medium | |
CN107092502B (en) | Automatic application configuration method and device based on cloud operating system | |
CN113760730A (en) | Automatic testing method and device | |
CN108897678B (en) | Static code detection method, static code detection system and storage device | |
CN103294456A (en) | Automatic publishing method and device of business plug-ins | |
CN110851343A (en) | Test method and device based on decision tree | |
CN105138612A (en) | Method and system for analyzing and locating reasons of data consistency difference | |
CN104461618A (en) | Method and device for loading modules | |
CN106610899B (en) | Test case generation method and device | |
CN102262527B (en) | The method and system of generating network service | |
CN104237680A (en) | Detection method, equipment and system for power quality monitoring data | |
CN115269548A (en) | Method and system for generating data warehouse development model and related equipment | |
CN107368321B (en) | Software version evolution method and system | |
CN111142927A (en) | Configuration file merging and splitting processing method and device | |
KR20160025881A (en) | Apparatus and method for detecting malicious shared library file | |
CN113535221A (en) | Method and device for managing application version | |
CN113065935A (en) | Data processing method, device, 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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20130911 |