Hi,
Its very good & simple framework to start with for scalable plugin frameworks creation. Thanks for the effort.
I've noticed one issue while exploring the PluginManager usage. According to JSPF Javadoc for PluginManager, PluginManager should be only one instance for entire application life cycle.
http://data.xeoh.net/jspf/api/net/xeoh/plugins/base/PluginManager.html [ During the lifetime of your application there should only be one PluginManager. ]
But multiple calls to PluginManagerFactory.createPluginManager() can create multiple instances of PluginManagerImpl.
PluginManager pm1 = PluginManagerFactory.createPluginManager();
pm1.addPluginsFrom( ClassURI.CLASSPATH );
PluginManager pm2 = PluginManagerFactory.createPluginManager();
// here pm1 != pm2
Should we enforce singleton nature to PluginManager instance in PluginManagerFactory?
regards,