* @param event The <code>BundleEvent</code> representing the bundle state
* change.
*/
public void bundleChanged(BundleEvent event) {
// Take care: This is synchronous - take care to not block the system !!
Loader theLoader = this.loader;
if (theLoader != null) {
switch (event.getType()) {
case BundleEvent.INSTALLED:
// register types when the bundle gets installed
theLoader.registerBundle(event.getBundle());
break;
case BundleEvent.UNINSTALLED:
theLoader.unregisterBundle(event.getBundle());
break;
case BundleEvent.UPDATED:
theLoader.updateBundle(event.getBundle());
}
}
}