#include "ctkPluginFrameworkContextPrivate_p.h" namespace ctk { QMutex PluginFrameworkContextPrivate::globalFwLock; int PluginFrameworkContextPrivate::globalId = 1; PluginFrameworkContextPrivate::PluginFrameworkContextPrivate( const PluginFrameworkContext::Properties& initProps) : /*plugins(this), services(this), systemPlugin(this)*/ props(initProps) { { QMutexLocker lock(&globalFwLock); id = globalId++; } log() << "created"; } void PluginFrameworkContextPrivate::init() { log() << "initializing"; // if (Constants.FRAMEWORK_STORAGE_CLEAN_ONFIRSTINIT // .equals(props.getProperty(Constants.FRAMEWORK_STORAGE_CLEAN))) { // deleteFWDir(); // // Must remove the storage clean property since it should not be // // used more than once! // props.removeProperty(Constants.FRAMEWORK_STORAGE_CLEAN); // } // props.save(); // systemPlugin.initSystemBundle(); // plugins.load(); log() << "inited"; log() << "Installed bundles:"; // // Use the ordering in the bundle storage to get a sorted list of bundles. // final BundleArchive [] allBAs = storage.getAllBundleArchives(); // for (int i = 0; i