1 11 package org.eclipse.osgi.internal.module; 12 13 import org.eclipse.osgi.service.resolver.BaseDescription; 14 import org.eclipse.osgi.service.resolver.BundleDescription; 15 16 public class GenericCapability extends VersionSupplier { 17 ResolverBundle resolverBundle; 18 19 GenericCapability(ResolverBundle resolverBundle, BaseDescription base) { 20 super(base); 21 this.resolverBundle = resolverBundle; 22 } 23 24 public BundleDescription getBundle() { 25 return getBaseDescription().getSupplier(); 26 } 27 28 public boolean isFromFragment() { 29 return resolverBundle.isFragment(); 30 } 31 32 public ResolverBundle getResolverBundle() { 33 return resolverBundle; 34 } 35 } 36 | Popular Tags |