quwiltw
Well-known member
Ive taken a look at the examples for plugin/addins and Ive got a prototype of a plugin framework working in VB.NET now. Im struggling though with one problem.
Ive created an interface IPlugin with the appropriate methods. The problem is that I have no way of knowing what the plugin developers call thier implementatio of IPlugin. Currently, Im able to go through the entire plugin class collection and each classes respective interface collections in order to determine which one implements IPlugin and right now, with only small sample plugins, this is no big deal. But as plugins get larger, this gets messy. I would like to have a better strategy for this, like forcing the name of the implementing class to be something I dictate (which I doubt is possible) or something else. Ive thought about maybe maintaining a little xml file that contains all the class implementations for each plugin then Id only have to investigate the entire assembly once per plugin, but this too seems messy.
Any thoughts are appreciated.
Ive created an interface IPlugin with the appropriate methods. The problem is that I have no way of knowing what the plugin developers call thier implementatio of IPlugin. Currently, Im able to go through the entire plugin class collection and each classes respective interface collections in order to determine which one implements IPlugin and right now, with only small sample plugins, this is no big deal. But as plugins get larger, this gets messy. I would like to have a better strategy for this, like forcing the name of the implementing class to be something I dictate (which I doubt is possible) or something else. Ive thought about maybe maintaining a little xml file that contains all the class implementations for each plugin then Id only have to investigate the entire assembly once per plugin, but this too seems messy.
Any thoughts are appreciated.