CN104572030A - Plug-in configuration method - Google Patents

Plug-in configuration method Download PDF

Info

Publication number
CN104572030A
CN104572030A CN201310463689.7A CN201310463689A CN104572030A CN 104572030 A CN104572030 A CN 104572030A CN 201310463689 A CN201310463689 A CN 201310463689A CN 104572030 A CN104572030 A CN 104572030A
Authority
CN
China
Prior art keywords
card
module
plug
unit
configuration
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
Application number
CN201310463689.7A
Other languages
Chinese (zh)
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.)
ZHENJIANG GOLDNT SOFTWARE Corp
Original Assignee
ZHENJIANG GOLDNT SOFTWARE Corp
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 ZHENJIANG GOLDNT SOFTWARE Corp filed Critical ZHENJIANG GOLDNT SOFTWARE Corp
Priority to CN201310463689.7A priority Critical patent/CN104572030A/en
Publication of CN104572030A publication Critical patent/CN104572030A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention relates to a plug-in configuration method, and belongs to the technical field of plug-in processing. The plug-in configuration method mainly comprises the steps of setting a basic plug-in interface module, setting other plug-in interface modules, configuring a plug-in file, loading a necessary plug-in interface module and loading other plug-in interface modules. Through the plug-in configuration method disclosed by the invention, different resources are divided into different modules, mutual call does not exist among the different modules, interaction is carried out through message events, the coupling is reduced, a system formed by combining plug-ins with different functions can be conveniently configured for different enterprises, departments and persons, and the deployment and maintenance are greatly simplified.

Description

A kind of plug-in card configuration method
Technical field
The present invention relates to the technical field of plug-in unit process, particularly relate to a kind of plug-in card configuration method.
Background technology
In software development, conveniently Function Extension is carried out to software, plug-in unit mode is often adopted to develop, by the function package one by one achieved by software in plug-in unit, finally each plug-in unit is integrated in software main program bag, by together issuing with main program code file the loading realizing plug-in unit.But software can not often exist the problem mutually quoted between function on stream, be not easy to management like this, in order to simplify deployment and maintenance system, the present invention has invented a kind of plug-in card configuration method.
Summary of the invention
The present invention has invented a kind of plug-in card configuration method, comprises following steps:
Base insert interface module step is set: arrange a base insert interface module, comprises plugin name attribute in this base insert interface module and parameter is the method for master routine;
Other card i/f module step are set: other card i/f modules inherit the attribute of above-mentioned base insert interface module, each card i/f module is arranged respectively to its corresponding name attribute, and be set to receive main system framework to the method for its master routine, at main system framework binding action listener;
Whether configuration plug-in Files step: be configured card i/f according to the application of each plug-in unit configuration, by XML file, write exactly and need the file name of the card i/f module of configuration and this card i/f module to be the card i/f module of VS .NET Prerequisites;
Loading indispensable card i/f module step: use loadPlugin() the card i/f module of function to indispensability load, be inserted into by the card i/f loaded and start in plug-in unit list;
Load other card i/f module step: when needing the card i/f module loading above-mentioned nonsystematic indispensability, this card i/f module information is read under the catalogue that plug-in unit is specified, judge to need the card i/f module started whether to exist, loadPlugin(is used if existed) function loads this card i/f module, is inserted into by the card i/f loaded and starts in plug-in unit list;
When system starts, when producing interactive between each card i/f module, if card i/f module sends message to another card i/f module, judge whether this another card i/f module loads, if do not loaded, then carry out other card i/f module step of above-mentioned loading, then the message sent is received; If do not specify the card i/f module of receipt message when card i/f module sends message, then this message is sent to all card i/f modules starting in the list of plug-in unit plug-in unit and exist.
In configuration plug-in Files step, AssemblyPath represents the card i/f module that will configure, and is expressed as indispensable card i/f module when FirstLoading is set to true, is expressed as other card i/f module when being set to false.
The logic that described loadplugin function realizes is by the reflection class in system framework, and all types in reflection specified class portion, is found the plug-in unit needing to load, be inserted into by the plug-in unit of this loading and start in plug-in unit class table by the mode of traversal.
By a kind of plug-in card configuration method that the present invention invents, different modules is divided into for different resource, mutual application is there is not between wherein different modules, interaction is carried out by message event, decrease coupling, can be the system that different enterprises, department and individual configure the combination of difference in functionality plug-in unit easily, greatly simplify and dispose and safeguard.
Embodiment
A kind of plug-in card configuration method of the present invention's invention, comprises following steps:
Base insert interface module step is set: arrange a base insert interface module ipluginlibrary, comprises plugin name attribute pluginname in this base insert interface module and parameter is the method for master routine;
Other card i/f module step are set: other card i/f modules inherit the attribute of above-mentioned base insert interface module ipluginlibrary, each card i/f module is arranged respectively to its corresponding name attribute pluginname, the rreturn value of name attribute is end this plug-in unit dll dynamic link library name, as " goldnt.commands.dll ", and be set to receive main system framework to the method for its master routine, at main system framework binding action listener;
Configuration plug-in Files step: the application configuration according to each plug-in unit is configured card i/f; pass through XML file; write exactly and need the file name of card i/f module of configuration and this card i/f module to be whether the card i/f module of VS .NET Prerequisites; configuration plug-in file layout is: <plugin assemblypath=" goldnt.commands.dll " firstloading=" true " > wherein asseblypath represent the file dll filename wanting loading of plug-in, be above-mentioned in goldnt.command; Firstloading is the card i/f module that true represents indispensable, for false represents other card i/f modules;
Loading indispensable card i/f module step: use loadPlugin() function is to the card i/f module of indispensability, namely the card i/f module that firstloading is true is loaded, the card i/f loaded is inserted into and starts in plug-in unit list;
Load other card i/f module step: when needing the card i/f module loading above-mentioned nonsystematic indispensability, namely when the card i/f module being false to firstloading loads, this card i/f module information is read under the catalogue that plug-in unit is specified, judge to need the card i/f module started whether to exist, loadPlugin(is used if existed) function loads this card i/f module, is inserted into by the card i/f loaded and starts in plug-in unit list;
When system starts, when producing interactive between each card i/f module, if card i/f module sends message to another card i/f module, judge whether this another card i/f module loads, if do not loaded, then carry out other card i/f module step of above-mentioned loading, then the message sent is received; If do not specify the card i/f module of receipt message when card i/f module sends message, then this message is sent to all card i/f modules starting in the list of plug-in unit plug-in unit and exist.
The logic that above-mentioned loadplugin function realizes is by the reflection class in system framework, and all types in reflection specified class portion, is found the plug-in unit needing to load, be inserted into by the plug-in unit of this loading and start in plug-in unit class table by the mode of traversal.

Claims (3)

1. a plug-in card configuration method, is characterized in that, comprises the following steps:
Base insert interface module step is set: arrange a base insert interface module, comprises plugin name attribute in this base insert interface module and parameter is the method for master routine;
Other card i/f module step are set: other card i/f modules inherit the attribute of above-mentioned base insert interface module, each card i/f module is arranged respectively to its corresponding name attribute, and be set to receive main system framework to the method for its master routine, at main system framework binding action listener;
Whether configuration plug-in Files step: be configured card i/f according to the application of each plug-in unit configuration, by XML file, write exactly and need the file name of the card i/f module of configuration and this card i/f module to be the card i/f module of VS .NET Prerequisites;
Loading indispensable card i/f module step: use loadPlugin() the card i/f module of function to indispensability load, be inserted into by the card i/f loaded and start in plug-in unit list;
Load other card i/f module step: when needing the card i/f module loading above-mentioned nonsystematic indispensability, this card i/f module information is read under the catalogue that plug-in unit is specified, judge to need the card i/f module started whether to exist, loadPlugin(is used if existed) function loads this card i/f module, is inserted into by the card i/f loaded and starts in plug-in unit list;
When system starts, when producing interactive between each card i/f module, if card i/f module sends message to another card i/f module, judge whether this another card i/f module loads, if do not loaded, then carry out other card i/f module step of above-mentioned loading, then the message sent is received; If do not specify the card i/f module of receipt message when card i/f module sends message, then this message is sent to all card i/f modules starting in the list of plug-in unit plug-in unit and exist.
2. a kind of plug-in card configuration method as claimed in claim 1, it is characterized in that, in configuration plug-in Files step, AssemblyPath represents the card i/f module that will configure, FirstLoading is expressed as indispensable card i/f module when being set to true, be expressed as other card i/f module when being set to false.
3. a kind of plug-in card configuration method as claimed in claim 1, it is characterized in that, the logic that described loadplugin function realizes is by the reflection class in system framework, the all types in reflection specified class portion, found the plug-in unit needing to load by the mode of traversal, the plug-in unit of this loading is inserted into and starts in plug-in unit class table.
CN201310463689.7A 2013-10-09 2013-10-09 Plug-in configuration method Pending CN104572030A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310463689.7A CN104572030A (en) 2013-10-09 2013-10-09 Plug-in configuration method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310463689.7A CN104572030A (en) 2013-10-09 2013-10-09 Plug-in configuration method

Publications (1)

Publication Number Publication Date
CN104572030A true CN104572030A (en) 2015-04-29

Family

ID=53088207

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310463689.7A Pending CN104572030A (en) 2013-10-09 2013-10-09 Plug-in configuration method

Country Status (1)

Country Link
CN (1) CN104572030A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106371864A (en) * 2016-08-23 2017-02-01 上海创景计算机系统有限公司 Method for quickly deploying plugin architecture
CN106502136A (en) * 2016-12-27 2017-03-15 贵州西部丽城生态环境发展有限责任公司 A kind of deodorization fragrant scent machine control system of easy extension
CN106502185A (en) * 2016-12-27 2017-03-15 贵州航天南海科技有限责任公司 A kind of multi-storied garage path planning control system of plugboard extension
CN106597904A (en) * 2016-12-27 2017-04-26 贵州航天南海科技有限责任公司 Path planning control method for three-dimensional garage extended through plugboard
CN106647504A (en) * 2016-12-27 2017-05-10 贵州航天南海科技有限责任公司 Easy-to-expand stereoscopic garage control method
CN106647405A (en) * 2016-12-27 2017-05-10 贵州西部丽城生态环境发展有限责任公司 Easily-extensible deodorization fragrance machine control method
CN106647403A (en) * 2016-12-27 2017-05-10 贵州航天南海科技有限责任公司 Stereo garage control method for expanding plugging board

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101464805A (en) * 2008-12-24 2009-06-24 中兴通讯股份有限公司 Plug-in management method and system thereof
CN101699405A (en) * 2009-10-26 2010-04-28 中兴通讯股份有限公司 Method and device for interaction between host program and plug-in and interaction between plug-ins
CN102411508A (en) * 2011-10-27 2012-04-11 深圳市茁壮网络股份有限公司 Plugin managing method, plugin controller, plugin managing device and set top box

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101464805A (en) * 2008-12-24 2009-06-24 中兴通讯股份有限公司 Plug-in management method and system thereof
CN101699405A (en) * 2009-10-26 2010-04-28 中兴通讯股份有限公司 Method and device for interaction between host program and plug-in and interaction between plug-ins
CN102411508A (en) * 2011-10-27 2012-04-11 深圳市茁壮网络股份有限公司 Plugin managing method, plugin controller, plugin managing device and set top box

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106371864A (en) * 2016-08-23 2017-02-01 上海创景计算机系统有限公司 Method for quickly deploying plugin architecture
CN106502136A (en) * 2016-12-27 2017-03-15 贵州西部丽城生态环境发展有限责任公司 A kind of deodorization fragrant scent machine control system of easy extension
CN106502185A (en) * 2016-12-27 2017-03-15 贵州航天南海科技有限责任公司 A kind of multi-storied garage path planning control system of plugboard extension
CN106597904A (en) * 2016-12-27 2017-04-26 贵州航天南海科技有限责任公司 Path planning control method for three-dimensional garage extended through plugboard
CN106647504A (en) * 2016-12-27 2017-05-10 贵州航天南海科技有限责任公司 Easy-to-expand stereoscopic garage control method
CN106647405A (en) * 2016-12-27 2017-05-10 贵州西部丽城生态环境发展有限责任公司 Easily-extensible deodorization fragrance machine control method
CN106647403A (en) * 2016-12-27 2017-05-10 贵州航天南海科技有限责任公司 Stereo garage control method for expanding plugging board

Similar Documents

Publication Publication Date Title
CN104572030A (en) Plug-in configuration method
CN104252342B (en) Embedded application implementation method and device capable of configuring parameters
US9594637B2 (en) Deploying parallel data integration applications to distributed computing environments
US20130074031A1 (en) Self-describing device module and system and computer-readable medium for the production thereof
CN103425468B (en) Plug-in type software integrating method and device
CN102638566B (en) BLOG system running method based on cloud storage
US10228977B2 (en) Managing distributed analytics on device groups
CN109669976B (en) ETL-based data service method and device
CN103885925B (en) Method for encapsulating XBRL (extensible business reporting language) instance documents
US10095699B2 (en) Computer-readable recording medium, execution control method, and information processing apparatus
CN102013994B (en) Method, terminal and system for implementing network element version compatibility in network management
CN103164206A (en) Software customization system based on software as a service (SAAS)
CN102393889A (en) Permissions configuration management system
CN103744647A (en) Java workflow development system and method based on workflow GPD
CN114741375A (en) Rapid and automatic data migration system and method for multi-source heterogeneous database
CN113326131B (en) Data processing method, device, equipment and storage medium
CN107861715B (en) Service establishing system and method
CN103092866A (en) Data monitoring method and monitoring device
CN102215264B (en) Method and device for supporting multi-tenancy data and service customized running
CN102053855B (en) Software generation system and method
CN102902543A (en) Web service application framework model
CN110941422B (en) Code automatic generation method, code generator and readable storage medium
CN103019819A (en) Dynamic link library uniform scheduling method based on plug-in mechanism
CN103809947B (en) A kind of method for automatically releasing of development requirement and system
CN102819537B (en) Heterogeneous system carries out the method and system of data exchange

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150429