I've got an app that I'm setting up to use plugins with. This is the first time I have ever attempted using plugins. I have it working, but I'm noticing that there is a lot of redundant code in the different plugins, and wanted to incorporate the common code in a core class located in the main program and utilize the magic of polymorphism to reduce the size of the plugins.
When I write everything in the main app, it works great, but when I write it as a plugin, everything falls apart. Has anyone done this before? I'm open to any suggestions or ideas, even if it means a large rewrite.
The reason for using the plugins is that this app will control a machine, and the plugins are the motion interface. Drives obsolete every few years as technologies advices. Since it will change regularly, I'm attempting to head off large rewrites of the main app by using plugins. Size matters since the plugins will be downloadable from the net.
While I can't release much of the code do to restrictions, I'm open to any input you all may have
My thanks to anyone who wants to help
Take care one and all, and stay safe.
Malisa NcubePosted Oct 14, 2008, 12:47 PM
I found this site quite good. http://www.codeproject.com/KB/macros/Net_AddinProjFrmwork.aspx
It will be nice to see an example where the Data Layer, Business Layer and the Interface have plugins and the application can be extended easily by placing the 3 plugins, and automatically using the same database session and seamlessly binding to the different interface areas.
It will be nice to use WPF, WCF.
Am just dreaming aloud, but that is what i want to do. Hope i get somewhere with it.
Mirko MeierPosted Mar 6, 2009, 2:12 PM
It is an easy way, just to add a new Entry in your Spring configuration.
Miguel BarrosPosted Mar 5, 2009, 5:02 PM
Do you know where fo find some documentation about a plugin system architecture?
Mirko MeierPosted Mar 4, 2009, 9:43 AM
It is very easy to extend an application by using xml.
Todd MessmannPosted Oct 14, 2008, 1:11 PM
Thanks for the link and hope. I was beginning to think I was the only one trying something like this. I have made some progress, but still am finding roadblocks to get around. It may take a bit of time, but I'm sure it is possible.
I can finally see the base class I want to use, but accessing, and using it the way I wanted is proving to be a bit more of a challenge. When I finally get it working, I'll post how I did it.
Admittedly, I'm not a top tear programmer yet, so there may be better way to do what I'm doing, so the feedback on it should be interesting and educational when I post it.
Good luck with your app. and thanks again.