On 8/10/11 11:00 PM, Yi Xiao wrote:
Hi devs,
I have a question that Could I define the repository's search order when
repository Admin's search the resource? And also, when the resolver resolve
a bundle, could I assign the order of the repositories?
I've noticed when the repository Admin search a resource, it will search
system and local first, then the user added repos. But the user's repos
search order depends on the repo's add order.
Now, I want to define the search order of users added repos, could you give
me some suggestions? thx~
Using
org.apache.felix.bundlerepository.RepositoryAdmin.resolver(Repository[])
you can specify which repository to use. I would imagine that this just
iterates over them in order. However, I'm not sure how significant the
repository order is, since the results are aggregated and then the
"best" candidate is chosen iteratively until one succeeds.
-> richard