The basic idea is that you want to represent the capabilities of the existing system as already being provided, used to support the requirements you're searching for, but ultimately excluded from the result, such that only missing capabilities are included in the result.
You might want to look at https://github.com/bndtools/bnd/blob/master/biz.aQute.resolve/src/biz/aQute/resolve/BndrunResolveContext.java and note how when using a "distro" (a predefined set of provided capabilities) it performs exactly this logic. Hth, - Ray
_______________________________________________ OSGi Developer Mail List osgi-dev@mail.osgi.org https://mail.osgi.org/mailman/listinfo/osgi-dev