The original proposed OSGi OBR API didn't provide a way to do this from
the RepositoryAdmin. You need to use the Felix OBR API, which exposes
such functionality on its RepositoryAdmin.
-> richard
On 3/17/12 19:16 , "San Martín, Matías" wrote:
Hi everybody,
I'm doing some experimentation with OBR (API) and I don't know how to
find a missing requirement with it.
That is, if I have a filter expression (as used in a <resource>'s
<require> description in a repository xml file), is there a way to
query the OBR service (by means of the repositoryAdmin, I guess) for
the bundles that satisfy that requirement?
For example,
I have the filter: "(&(package=org.foo.somepackage)(version>=1.3.0))"
Then I would like to query for some bundle that exports the package
"org.foo.somepackage" with a version >= 1.3.0.
From the documentation in the RepositoryAdmin class (revision 1.3):
"Checking the capabilities of the filters is not possible because that
requires a new construct in the filter."
I guess it can't be done. But maybe I'm missing something.
Thanks in advance for any insight about this.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]