public PackageRoots[][] isDynamicConsistent(ResolverBundle importingBundle, ResolverExport matchingExport) { List<PackageRoots[]> results = isConsistentInternal(importingBundle, matchingExport, true, null); return results == null ? null : results.toArray(new PackageRoots[results.size()][]); }
public PackageRoots[][] isDynamicConsistent(ResolverBundle importingBundle, ResolverExport matchingExport) { List<PackageRoots[]> results = isConsistentInternal(importingBundle, matchingExport, true, null); return results == null ? null : results.toArray(new PackageRoots[results.size()][]); }
public PackageRoots[][] isConsistent(ResolverBundle importingBundle, ResolverExport matchingExport) { List<PackageRoots[]> results = isConsistentInternal(importingBundle, matchingExport, false, null); return results == null ? null : results.toArray(new PackageRoots[results.size()][]); }
public PackageRoots[][] isConsistent(ResolverBundle importingBundle, ResolverExport matchingExport) { List<PackageRoots[]> results = isConsistentInternal(importingBundle, matchingExport, false, null); return results == null ? null : results.toArray(new PackageRoots[results.size()][]); }
public PackageRoots[][] isConsistent(ResolverBundle requiringBundle, ResolverBundle matchingBundle) { List<PackageRoots[]> results = isConsistentInternal(requiringBundle, matchingBundle, new ArrayList<ResolverBundle>(1), false, null); return results == null ? null : results.toArray(new PackageRoots[results.size()][]); }
public PackageRoots[][] isDynamicConsistent(ResolverBundle importingBundle, ResolverExport matchingExport) { List<PackageRoots[]> results = isConsistentInternal(importingBundle, matchingExport, true, null); return results == null ? null : results.toArray(new PackageRoots[results.size()][]); }
public PackageRoots[][] isConsistent(ResolverBundle importingBundle, ResolverExport matchingExport) { List<PackageRoots[]> results = isConsistentInternal(importingBundle, matchingExport, false, null); return results == null ? null : results.toArray(new PackageRoots[results.size()][]); }
public PackageRoots[][] isDynamicConsistent(ResolverBundle importingBundle, ResolverExport matchingExport) { List<PackageRoots[]> results = isConsistentInternal(importingBundle, matchingExport, true, null); return results == null ? null : results.toArray(new PackageRoots[results.size()][]); }
public PackageRoots[][] isConsistent(ResolverBundle importingBundle, ResolverExport matchingExport) { List<PackageRoots[]> results = isConsistentInternal(importingBundle, matchingExport, false, null); return results == null ? null : results.toArray(new PackageRoots[results.size()][]); }
public PackageRoots[][] isConsistent(ResolverBundle requiringBundle, ResolverBundle matchingBundle) { List<PackageRoots[]> results = isConsistentInternal(requiringBundle, matchingBundle, new ArrayList<ResolverBundle>(1), false, null); return results == null ? null : results.toArray(new PackageRoots[results.size()][]); }
public PackageRoots[][] isConsistent(ResolverBundle requiringBundle, ResolverBundle matchingBundle) { List<PackageRoots[]> results = isConsistentInternal(requiringBundle, matchingBundle, new ArrayList<ResolverBundle>(1), false, null); return results == null ? null : results.toArray(new PackageRoots[results.size()][]); }
public PackageRoots[][] isConsistent(ResolverBundle requiringBundle, ResolverBundle matchingBundle) { List<PackageRoots[]> results = isConsistentInternal(requiringBundle, matchingBundle, new ArrayList<ResolverBundle>(1), false, null); return results == null ? null : results.toArray(new PackageRoots[results.size()][]); }
private List<PackageRoots[]> isConsistentInternal(ResolverBundle requiringBundle, ResolverBundle matchingBundle, List<ResolverBundle> visited, boolean dynamicImport, List<PackageRoots[]> results) { // needed to prevent endless cycles if (visited.contains(matchingBundle)) return results; visited.add(matchingBundle); // check that the packages exported by the matching bundle are consistent ResolverExport[] matchingExports = matchingBundle.getExportPackages(); for (int i = 0; i < matchingExports.length; i++) { ResolverExport matchingExport = matchingExports[i]; if (matchingExports[i].getSubstitute() != null) matchingExport = (ResolverExport) matchingExports[i].getSubstitute(); results = isConsistentInternal(requiringBundle, matchingExport, dynamicImport, results); } // check that the packages from reexported bundles are consistent BundleConstraint[] supplierRequires = matchingBundle.getRequires(); for (int j = 0; j < supplierRequires.length; j++) { ResolverBundle reexported = (ResolverBundle) supplierRequires[j].getSelectedSupplier(); if (reexported == null || !((BundleSpecification) supplierRequires[j].getVersionConstraint()).isExported()) continue; results = isConsistentInternal(requiringBundle, reexported, visited, dynamicImport, results); } return results; }
private List<PackageRoots[]> isConsistentInternal(ResolverBundle requiringBundle, ResolverBundle matchingBundle, List<ResolverBundle> visited, boolean dynamicImport, List<PackageRoots[]> results) { // needed to prevent endless cycles if (visited.contains(matchingBundle)) return results; visited.add(matchingBundle); // check that the packages exported by the matching bundle are consistent ResolverExport[] matchingExports = matchingBundle.getExportPackages(); for (int i = 0; i < matchingExports.length; i++) { ResolverExport matchingExport = matchingExports[i]; if (matchingExports[i].getSubstitute() != null) matchingExport = (ResolverExport) matchingExports[i].getSubstitute(); results = isConsistentInternal(requiringBundle, matchingExport, dynamicImport, results); } // check that the packages from reexported bundles are consistent BundleConstraint[] supplierRequires = matchingBundle.getRequires(); for (int j = 0; j < supplierRequires.length; j++) { ResolverBundle reexported = (ResolverBundle) supplierRequires[j].getSelectedSupplier(); if (reexported == null || !((BundleSpecification) supplierRequires[j].getVersionConstraint()).isExported()) continue; results = isConsistentInternal(requiringBundle, reexported, visited, dynamicImport, results); } return results; }
private List<PackageRoots[]> isConsistentInternal(ResolverBundle requiringBundle, ResolverBundle matchingBundle, List<ResolverBundle> visited, boolean dynamicImport, List<PackageRoots[]> results) { // needed to prevent endless cycles if (visited.contains(matchingBundle)) return results; visited.add(matchingBundle); // check that the packages exported by the matching bundle are consistent ResolverExport[] matchingExports = matchingBundle.getExportPackages(); for (int i = 0; i < matchingExports.length; i++) { ResolverExport matchingExport = matchingExports[i]; if (matchingExports[i].getSubstitute() != null) matchingExport = (ResolverExport) matchingExports[i].getSubstitute(); results = isConsistentInternal(requiringBundle, matchingExport, dynamicImport, results); } // check that the packages from reexported bundles are consistent BundleConstraint[] supplierRequires = matchingBundle.getRequires(); for (int j = 0; j < supplierRequires.length; j++) { ResolverBundle reexported = (ResolverBundle) supplierRequires[j].getSelectedSupplier(); if (reexported == null || !((BundleSpecification) supplierRequires[j].getVersionConstraint()).isExported()) continue; results = isConsistentInternal(requiringBundle, reexported, visited, dynamicImport, results); } return results; }
private List<PackageRoots[]> isConsistentInternal(ResolverBundle requiringBundle, ResolverBundle matchingBundle, List<ResolverBundle> visited, boolean dynamicImport, List<PackageRoots[]> results) { // needed to prevent endless cycles if (visited.contains(matchingBundle)) return results; visited.add(matchingBundle); // check that the packages exported by the matching bundle are consistent ResolverExport[] matchingExports = matchingBundle.getExportPackages(); for (int i = 0; i < matchingExports.length; i++) { ResolverExport matchingExport = matchingExports[i]; if (matchingExports[i].getSubstitute() != null) matchingExport = (ResolverExport) matchingExports[i].getSubstitute(); results = isConsistentInternal(requiringBundle, matchingExport, dynamicImport, results); } // check that the packages from reexported bundles are consistent BundleConstraint[] supplierRequires = matchingBundle.getRequires(); for (int j = 0; j < supplierRequires.length; j++) { ResolverBundle reexported = (ResolverBundle) supplierRequires[j].getSelectedSupplier(); if (reexported == null || !((BundleSpecification) supplierRequires[j].getVersionConstraint()).isExported()) continue; results = isConsistentInternal(requiringBundle, reexported, visited, dynamicImport, results); } return results; }
public void populateRoots(ResolverBundle bundle) { if (bundles.containsKey(bundle)) // only do the full populate the first time (bug 337272) return; // process all requires BundleConstraint[] requires = bundle.getRequires(); for (int j = 0; j < requires.length; j++) { ResolverBundle selectedSupplier = (ResolverBundle) requires[j].getSelectedSupplier(); if (selectedSupplier != null) isConsistentInternal(bundle, selectedSupplier, new ArrayList<ResolverBundle>(1), true, null); } // process all imports // must check resolved imports to get any dynamically resolved imports ExportPackageDescription[] imports = bundle.getBundleDescription().getResolvedImports(); for (ExportPackageDescription importPkg : imports) { List<ResolverExport> exports = bundle.getResolver().getResolverExports().get(importPkg.getName()); for (ResolverExport export : exports) { if (export.getExportPackageDescription() == importPkg) isConsistentInternal(bundle, export, true, null); } } }
public void populateRoots(ResolverBundle bundle) { if (bundles.containsKey(bundle)) // only do the full populate the first time (bug 337272) return; // process all requires BundleConstraint[] requires = bundle.getRequires(); for (int j = 0; j < requires.length; j++) { ResolverBundle selectedSupplier = (ResolverBundle) requires[j].getSelectedSupplier(); if (selectedSupplier != null) isConsistentInternal(bundle, selectedSupplier, new ArrayList<ResolverBundle>(1), true, null); } // process all imports // must check resolved imports to get any dynamically resolved imports ExportPackageDescription[] imports = bundle.getBundleDescription().getResolvedImports(); for (ExportPackageDescription importPkg : imports) { List<ResolverExport> exports = bundle.getResolver().getResolverExports().get(importPkg.getName()); for (ResolverExport export : exports) { if (export.getExportPackageDescription() == importPkg) isConsistentInternal(bundle, export, true, null); } } }
public void populateRoots(ResolverBundle bundle) { if (bundles.containsKey(bundle)) // only do the full populate the first time (bug 337272) return; // process all requires BundleConstraint[] requires = bundle.getRequires(); for (int j = 0; j < requires.length; j++) { ResolverBundle selectedSupplier = (ResolverBundle) requires[j].getSelectedSupplier(); if (selectedSupplier != null) isConsistentInternal(bundle, selectedSupplier, new ArrayList<ResolverBundle>(1), true, null); } // process all imports // must check resolved imports to get any dynamically resolved imports ExportPackageDescription[] imports = bundle.getBundleDescription().getResolvedImports(); for (ExportPackageDescription importPkg : imports) { List<ResolverExport> exports = bundle.getResolver().getResolverExports().get(importPkg.getName()); for (ResolverExport export : exports) { if (export.getExportPackageDescription() == importPkg) isConsistentInternal(bundle, export, true, null); } } }
public void populateRoots(ResolverBundle bundle) { if (bundles.containsKey(bundle)) // only do the full populate the first time (bug 337272) return; // process all requires BundleConstraint[] requires = bundle.getRequires(); for (int j = 0; j < requires.length; j++) { ResolverBundle selectedSupplier = (ResolverBundle) requires[j].getSelectedSupplier(); if (selectedSupplier != null) isConsistentInternal(bundle, selectedSupplier, new ArrayList<ResolverBundle>(1), true, null); } // process all imports // must check resolved imports to get any dynamically resolved imports ExportPackageDescription[] imports = bundle.getBundleDescription().getResolvedImports(); for (ExportPackageDescription importPkg : imports) { List<ResolverExport> exports = bundle.getResolver().getResolverExports().get(importPkg.getName()); for (ResolverExport export : exports) { if (export.getExportPackageDescription() == importPkg) isConsistentInternal(bundle, export, true, null); } } }