|Re: [equinox-dev] classLoader.getResources("META-INF/.resource")|
You also posted this on the osgi mailing list. I'm posting my answer here also for others ... but lets keep the general osgi questions on the osgi mailing list.
With the current OSGi specification one way I can see doing this is to make all bundles supplying META-INF/.resources a fragment bundle of the main bundle using getResources(). This should make all resouces from the fragments available to the host as if they were part of the host. The problem with dynamic imports is you only get wired to a single exporter of the resource and you do not really have much of a choice on which one you get wired to. Although you could use some matching attributes to scope down the list of possible supplies, but this still does not help you get the resource from multiple suppliers.
If you are using Equinox you could use the buddy classloading mechanism. Search Eclipse help for Eclipse-BuddyPolicy for more information.
There is ongoing discussions within OSGi for how to solve these types of issues in a future version the specification, but that does not help you now :)
rajeshk---12/16/2007 05:42:10 AM---Hi,
12/16/2007 05:42 AM