use of org.apache.xbean.osgi.bundle.util.BundleDescription in project geronimo-xbean by apache.
the class BundleAssignableClassFinder method initialize.
private void initialize() {
BundleDescription description = new BundleDescription(bundle.getHeaders());
List<BundleDescription.ImportPackage> imports = description.getExternalImports();
for (BundleDescription.ImportPackage packageImport : imports) {
String packageName = packageImport.getName();
ExportedPackage[] exports = packageAdmin.getExportedPackages(packageName);
Bundle wiredBundle = isWired(bundle, exports);
if (wiredBundle != null) {
wiredImportedPackageNames.add(packageName.replace('.', '/'));
break;
}
}
}
Aggregations