add(m);
break;
}
case BundleEvent.UNINSTALLED :
{
final Module m = getModule(bundle);
if (m!=null) {
// getModule can return null if some bundle got uninstalled
// before we have finished initialization. This can
// happen if framework APIs are called in parallel
// by some third party bundles.
// We need to call remove as it processes provider names
// and updates the cache.
remove(m);
}
break;
}
case BundleEvent.UPDATED :
final Module m = getModule(bundle);
if (m!=null) {
// getModule can return null if some bundle got uninstalled
// before we have finished initialization. This can
// happen if framework APIs are called in parallel
// by some third party bundles.