سؤال

Exported packages remain imported after I uninstall one of my bundle. I understand this is the right behavior, it is well documented here. My question is, it is OK to call FrameworkWiring.refreshBundles(mybundle) in the stop method in my bundle's activator or it can cause any problem? I have tested, made many uninstall, install and seems to be OK.

Thanks in advanced!

هل كانت مفيدة؟

المحلول

It is probably safe since the actual refresh happens on another thread owned by the framework.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top