Hello all,
I've been using BundleRepository for long time using
RepositoryAdmin.discoverResources(String filterExpr)...
But now I need to search for bundles and ESA artifacts in my R5
repositories using their provided Capabilities...
Well, the most logical way I found was to use the
RepositoryAdmin.discoverResources(Requirement[] requirements) method. I
also found that BundleRepository registers a
org.osgi.service.repository.Repository that has
findProviders(Collection<? extends Requirement> requirements) method.
But I was not able to find any way to create a
org.apache.felix.bundlerepository.Requirement neither
org.osgi.resource.Requirement object.
I found RequirementImpl class, but all its constructors requires a
Resource object. =-O and I don't have a resource, it is exactly what I
was looking for ?
could someone give me a clue here please?
thanks,
Cristiano