Plug-in calling method and device based on a micro-kernel architecture
A microkernel and plug-in technology, applied in the computer field, can solve problems such as poor versatility, achieve the effect of less repetition, improve experience and efficiency, and improve versatility
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0050] This embodiment provides a method for invoking a plug-in based on a microkernel architecture. The microkernel architecture includes a plug-in module and a core system. Please refer to figure 2 , the method includes:
[0051] Step S1: inheriting all the plug-ins in the plug-in module from a preset parent class, and setting a type judgment method in the preset parent class, and the type judgment method is used to judge whether a specific object is an object of a certain class.
[0052] Specifically, all plugins inherit the default parent class, that is, the default parent class IPlugin is the parent class of the plugin class corresponding to all plugins. The type judgment method isPlugin is specifically used to judge whether a specific object is an object of a certain class.
[0053] In the specific implementation process, the implementation of isPlugin is as follows:
[0054] virtual bool isPlugin(const char*className)
[0055] Among them, isPlugin is the method name...
Embodiment 2
[0088] This embodiment provides a plug-in invocation device based on a microkernel architecture, where the microkernel architecture includes a plug-in module and a core system. Please refer to image 3 , the device includes:
[0089] The preset parent class setting module 301 is used to inherit all the plugins in the plugin module from the preset parent class, and set a type judgment method in the preset parent class, and the type judgment method is used to judge whether a specific object is a certain object. an object of a class;
[0090] The source code analysis module 302 is used to analyze the source codes of all the plug-ins, and obtain the inheritance relationship between the plug-ins;
[0091] The code automatic generation module 303 is used to generate the implementation code of the type judgment method corresponding to each plug-in according to the inheritance relationship between the plug-ins;
[0092] The security conversion module 304 is used to perform security ...
Embodiment 3
[0105] This embodiment provides a computer-readable storage medium 300 on which a computer program 311 is stored, and when the program is executed, implements the method described in the first embodiment.
[0106] Since the computer-readable storage medium introduced in the third embodiment of the present invention is a computer device used to implement the method for invoking a plug-in based on the microkernel architecture in the first embodiment of the present invention, the method based on the first embodiment of the present invention is well known in the art. Those who belong to it can understand the specific structure and deformation of the computer-readable storage medium, so it is not repeated here. All computer-readable storage media used in the method in Embodiment 1 of the present invention belong to the scope of protection of the present invention.
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com