diff options
author | Thomas Watson | 2008-02-12 16:20:17 +0000 |
---|---|---|
committer | Thomas Watson | 2008-02-12 16:20:17 +0000 |
commit | 24bf22274a62fa2b11318d82bad1d215a4725986 (patch) | |
tree | 3365d5f428dc240f535c82e24df9d3d91a7afedf /bundles/org.eclipse.osgi/core/adaptor/org/eclipse/osgi/service/resolver/State.java | |
parent | a908375cbcfc3e4870da6b0f033c114f0c3fc8b1 (diff) | |
download | rt.equinox.framework-24bf22274a62fa2b11318d82bad1d215a4725986.tar.gz rt.equinox.framework-24bf22274a62fa2b11318d82bad1d215a4725986.tar.xz rt.equinox.framework-24bf22274a62fa2b11318d82bad1d215a4725986.zip |
Bug 217724 Substitutable exports and require-bundle
Diffstat (limited to 'bundles/org.eclipse.osgi/core/adaptor/org/eclipse/osgi/service/resolver/State.java')
-rw-r--r-- | bundles/org.eclipse.osgi/core/adaptor/org/eclipse/osgi/service/resolver/State.java | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/bundles/org.eclipse.osgi/core/adaptor/org/eclipse/osgi/service/resolver/State.java b/bundles/org.eclipse.osgi/core/adaptor/org/eclipse/osgi/service/resolver/State.java index 304244ed8..2fb96de0c 100644 --- a/bundles/org.eclipse.osgi/core/adaptor/org/eclipse/osgi/service/resolver/State.java +++ b/bundles/org.eclipse.osgi/core/adaptor/org/eclipse/osgi/service/resolver/State.java @@ -187,10 +187,29 @@ public interface State { * @param resolvedRequires the BundleDescriptions that resolve the required bundles for this bundle, can be <code>null</code> * @param resolvedImports the exported packages that resolve the imports for this bundle, can be <code>null</code> * @throws IllegalStateException if this is not done during a call to <code>resolve</code> + * @deprecated use {@link #resolveBundle(BundleDescription, boolean, BundleDescription[], ExportPackageDescription[], ExportPackageDescription[], BundleDescription[], ExportPackageDescription[])} */ public void resolveBundle(BundleDescription bundle, boolean status, BundleDescription[] hosts, ExportPackageDescription[] selectedExports, BundleDescription[] resolvedRequires, ExportPackageDescription[] resolvedImports); /** + * Sets whether or not the given bundle is selected in this state. + * <p> + * This method is intended to be used by resolvers in the process of + * determining which constraints are satisfied by which components. + * </p> + * + * @param bundle the bundle to update + * @param status whether or not the given bundle is resolved, if false the other parameters are ignored + * @param hosts the host for the resolve fragment, can be <code>null</code> + * @param selectedExports the selected exported packages for this resolved bundle, can be <code>null</code> + * @param substitutedExports the exported packages that resolve imports for this bundle and substitute exports, can be <code>null</code> + * @param resolvedRequires the BundleDescriptions that resolve the required bundles for this bundle, can be <code>null</code> + * @param resolvedImports the exported packages that resolve the imports for this bundle, can be <code>null</code> + * @throws IllegalStateException if this is not done during a call to <code>resolve</code> + */ + public void resolveBundle(BundleDescription bundle, boolean status, BundleDescription[] hosts, ExportPackageDescription[] selectedExports, ExportPackageDescription[] substitutedExports, BundleDescription[] resolvedRequires, ExportPackageDescription[] resolvedImports); + + /** * Sets the given removal pending bundle to removal complete for this state. * <p> * This method is intended to be used by resolvers in the process of |