in src/main/java/org/apache/sling/jcr/contentloader/internal/BundleContentLoader.java [223:251]
public void unregisterBundle(final Session session, final Bundle bundle) {
if (delayedBundles.contains(bundle)) {
delayedBundles.remove(bundle);
} else {
try {
bundleHelper.createRepositoryPath(session, BundleContentLoaderListener.BUNDLE_CONTENT_NODE);
final Map<String, Object> bundleContentInfo = bundleHelper.getBundleContentInfo(session, bundle, false);
// if we don't get an info, someone else is currently loading or unloading
// or the bundle is already uninstalled
if (bundleContentInfo == null) {
return;
}
try {
uninstallContent(session, bundle,
(String[]) bundleContentInfo.get(BundleContentLoaderListener.PROPERTY_UNINSTALL_PATHS));
bundleHelper.contentIsUninstalled(session, bundle);
} finally {
bundleHelper.unlockBundleContentInfo(session, bundle, false, null);
}
} catch (RepositoryException re) {
log.error("Cannot remove initial content for bundle " + bundle.getSymbolicName() + " : "
+ re.getMessage(), re);
}
}
}