1 11 package org.eclipse.osgi.service.resolver; 12 13 import java.util.Dictionary ; 14 15 import org.osgi.framework.BundleException; 16 import org.osgi.framework.Version; 17 18 27 public interface State { 28 34 public boolean addBundle(BundleDescription description); 35 36 47 public StateDelta compare(State baseState) throws BundleException; 48 49 56 public BundleDescription removeBundle(long bundleId); 57 58 65 public boolean removeBundle(BundleDescription bundle); 66 67 74 public boolean updateBundle(BundleDescription newDescription); 75 76 82 public StateDelta getChanges(); 83 84 89 public BundleDescription[] getBundles(); 90 91 99 public BundleDescription getBundle(long id); 100 101 113 public BundleDescription getBundle(String symbolicName, Version version); 114 115 122 public BundleDescription getBundleByLocation(String location); 123 124 133 public long getTimeStamp(); 134 135 139 public void setTimeStamp(long newTimeStamp); 140 141 147 public boolean isResolved(); 148 149 165 public void resolveConstraint(VersionConstraint constraint, BaseDescription supplier); 166 167 182 public void resolveBundle(BundleDescription bundle, boolean status, BundleDescription[] hosts, ExportPackageDescription[] selectedExports, BundleDescription[] resolvedRequires, ExportPackageDescription[] resolvedImports); 183 184 194 public void removeBundleComplete(BundleDescription bundle); 195 196 211 public void addResolverError(BundleDescription bundle, int type, String data, VersionConstraint unsatisfied); 212 213 224 public void removeResolverErrors(BundleDescription bundle); 225 226 232 public ResolverError[] getResolverErrors(BundleDescription bundle); 233 234 242 public Resolver getResolver(); 243 244 259 public void setResolver(Resolver value); 263 264 288 public StateDelta resolve(boolean incremental); 289 290 293 public StateDelta resolve(); 294 295 307 public StateDelta resolve(BundleDescription[] discard); 308 309 317 public void setOverrides(Object value); 319 320 326 public BundleDescription[] getResolvedBundles(); 327 328 333 public boolean isEmpty(); 334 335 339 public ExportPackageDescription[] getExportedPackages(); 340 341 347 public BundleDescription[] getBundles(String symbolicName); 348 349 353 public StateObjectFactory getFactory(); 354 355 365 public ExportPackageDescription linkDynamicImport(BundleDescription importingBundle, String requestedPackage); 366 367 388 public boolean setPlatformProperties(Dictionary platformProperties); 389 390 401 public boolean setPlatformProperties(Dictionary [] platformProperties); 402 403 407 public Dictionary [] getPlatformProperties(); 408 409 416 public ExportPackageDescription[] getSystemPackages(); 417 418 430 public StateHelper getStateHelper(); 431 432 441 public long getHighestBundleId(); 442 } 443 | Popular Tags |