I use a similar pattern in an application for loading plugins. They implement a Plugin interface, and the Plugin "main" classes pathnames are defined in a XML file.
It works very well. Before that, there was a lot of complex - and unnecessary - dependancies between my core code and the code that i put alter in the Plugins. |