Example #1
0
 final PackageSource createExportPackageSource(
     ExportPackageDescription export, KeyedHashSet visited) {
   BundleLoaderProxy exportProxy = getLoaderProxy(export.getExporter());
   if (exportProxy == null)
     // TODO log error!!
     return null;
   PackageSource requiredSource =
       exportProxy.getBundleLoader().findRequiredSource(export.getName(), visited);
   PackageSource exportSource = exportProxy.createPackageSource(export, false);
   if (requiredSource == null) return exportSource;
   return createMultiSource(export.getName(), new PackageSource[] {requiredSource, exportSource});
 }