1 11 package org.eclipse.osgi.internal.module; 12 13 import org.eclipse.osgi.service.resolver.*; 14 15 18 public class BundleConstraint extends ResolverConstraint { 19 BundleConstraint(ResolverBundle bundle, VersionConstraint bundleConstraint) { 20 super(bundle, bundleConstraint); 21 } 22 23 boolean isOptional() { 24 if (constraint instanceof HostSpecification) 25 return false; 26 return ((BundleSpecification) constraint).isOptional(); 27 } 28 } 29 | Popular Tags |