Long time did not write their own things, should have a good summary of it! A master said, "a problem should not be solved two times!" "In addition to a good brain, and then to adhere to the summary."
Recently need to make a system plug-in framework, I refer to the World Wind plug-in way to build a plug-in framework, you can refer to the "WorldWind Learning Series Five: plug-in loading process full analysis", the following to share with you.
When initializing, loading the first two plugins, you can dynamically load keyboarderloader, such as:
The plugin framework is a streamlined version of the WW plug-in framework, ideal for plug-in system development, and also to help you learn about WW's plugin loading mechanism.
The flaw is that event-driven plug-in communication is not implemented. I will continue to optimize the framework in the future.
Now shared plug-in framework source code is as follows: WW Plugin framework
Original link: Imitation World wind constructs its own C # version of the plug-in framework--WW plug-in mechanism streamlined transformation
I blog All the technical exploration results will be "non-trace Guest", "Sinan" and "blog garden" tripartite common all, original works such as to be reproduced, please indicate this blog statement.
[Turn] imitation world Wind constructs its own C # version of the plug-in framework--WW plugin mechanism streamlined transformation