public void downloaded(File file, int pendings) throws Exception {
if (listener != null) {
listener.onDownload(file, pendings);
}
FabResolver resolver = fabResolverFactory.getResolver(file.toURI().toURL());
FabBundleInfo fabInfo = resolver.getInfo();
ResourceImpl resource = (ResourceImpl) manageResource(location, fabInfo.getManifest(), new StreamProvider.Fab(fabInfo));
for (String name : fabInfo.getFeatures()) {
registerMatchingFeatures(name);
requireFeature(name, resource);
}
for (DependencyTree dep : fabInfo.getBundles()) {
File depFile = dep.getJarFile();
Attributes attrs = getAttributes(dep.getJarURL().toString(), depFile);
if (attrs.getValue(Constants.BUNDLE_SYMBOLICNAME) != null) {
manageResource(getMvnUrl(dep), attrs, new StreamProvider.File(depFile));
}