Method and device for starting plug-in in main program

A main program and plug-in technology, applied in the direction of program control device, program loading/starting, etc., can solve the problems of waste of resources, reduce processing efficiency, etc., and achieve the effect of reducing the number of downloads, improving processing efficiency, and improving matching rate

Active Publication Date: 2015-06-24
BEIJING QIHOO TECH CO LTD
View PDF2 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Although the plug-in version 1 can adapt to the main program version 2, due to the hard-coded one-to-one correspondence, when the main program is called, it will be mistaken for the plug-in version 1 as an invalid plug-in and will not be called. If the current main program package There is no relevant data of plug-in version 2 in the , so it needs to be downloaded, which will reduce the processing efficiency and lead to waste of resources

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for starting plug-in in main program
  • Method and device for starting plug-in in main program
  • Method and device for starting plug-in in main program

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0072] figure 2 A flowchart showing a method for starting a plug-in in a main program according to another embodiment of the present invention. Such as figure 2 As shown, the method at least includes the following steps S202 to S214.

[0073] Step S202, receiving a plug-in startup instruction, and obtaining a current plug-in identifier of the plug-in to be started.

[0074] Step S204: Search for a plug-in ID that matches the current plug-in ID among multiple plug-in IDs whose corresponding plug-ins are adapted to the main program, and obtain a search result. If the search result is that a plug-in ID that matches the current plug-in ID is found, then Continue to execute step S206; if the result of the search is that no plug-in ID matching the current plug-in ID is found, continue to execute step S208.

[0075] Step S206, start the plug-in to be started.

[0076] Step S208, selecting a plug-in ID from multiple plug-in IDs, and then downloading a corresponding plug-in accordi...

Embodiment 2

[0087] In the embodiment of the present invention, it is also possible to capture the background plug-in upgrade event, obtain the plug-in ID of the plug-in to be upgraded, and then update multiple plug-in IDs according to the plug-in ID of the upgraded plug-in, realize timely update, and improve the accuracy of search and matching. image 3 A flow chart of a method for upgrading a background plug-in according to an embodiment of the present invention is shown. Such as image 3 As shown, the method at least includes the following steps S302 to S314.

[0088] Step S302, capture the background plug-in upgrade event, and obtain the plug-in ID of the plug-in to be upgraded.

[0089] Here, capturing background plug-in upgrade events can be implemented in various ways, such as setting an upgrade time in advance or when a preset upgrade event is triggered, and so on.

[0090] Step S304, compare the plug-in ID of the plug-in to be upgraded with multiple plug-in IDs, and determine wh...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides a method and device for starting a plug-in in a main program. The method comprises the steps of acquiring current plug-in identification of the plug-in to be started when receiving a plug-in startup command; in multiple plug-in identification of the corresponding plug-in which are all adaptive to the main program, searching for the plug-in identification matched with the current plug-in identification, and obtaining a search result; according to the search result, starting the corresponding plug-in. By means of the technical scheme of the method and device for starting the plug-in in the main program, the matching ratio of the plug-in identification can be raised, and the aims to be compatible with an old version and raise the processing efficiency can be achieved.

Description

technical field [0001] The invention relates to the technical field of computer processing, in particular to a method and a device for starting a plug-in in a main program. Background technique [0002] In software development, in order to facilitate the function extension of the software, plug-ins can be used for development, and the functions to be realized by the software are encapsulated in the plug-ins, and finally the plug-ins are integrated into the main software package and released together. [0003] In order to ensure the normal interaction between the plug-in and the main program, the plug-in needs to be adapted to the main program. In related technologies, the one-to-one correspondence between the main program version and the plug-in version is implemented in the main program code. For example, when the main program is upgraded from version 1 to version 2, the plug-in is also upgraded from version 1 to version 2. In related technologies, the one-to-one correspond...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/445
Inventor 宋照春张炅轩姚彤
Owner BEIJING QIHOO TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products