1 11 package org.eclipse.osgi.internal.module; 12 13 import org.eclipse.osgi.service.resolver.BundleDescription; 14 import org.eclipse.osgi.service.resolver.ExportPackageDescription; 15 import org.osgi.framework.Constants; 16 17 20 public class ResolverExport extends VersionSupplier { 21 private ResolverBundle resolverBundle; 22 23 ResolverExport(ResolverBundle resolverBundle, ExportPackageDescription epd) { 24 super(epd); 25 this.resolverBundle = resolverBundle; 26 } 27 28 public ExportPackageDescription getExportPackageDescription() { 29 return (ExportPackageDescription) base; 30 } 31 32 public BundleDescription getBundle() { 33 return getExportPackageDescription().getExporter(); 34 } 35 36 ResolverBundle getExporter() { 37 return resolverBundle; 38 } 39 40 String [] getUsesDirective() { 41 return (String []) getExportPackageDescription().getDirective(Constants.USES_DIRECTIVE); 42 } 43 } 44 | Popular Tags |