Hi Marcel,
Thanks for input, I was somewhat able to get it to work with the test case
you pointed me to.
I do have some questions though:
1. If my ResourceProvider provides two resources; /res/file1 and /res/file2,
the "added" callback of the impl class that I've defined as having a
dependency on /res/file1 gets called twice even though I've
setFilter("(path=/res/file1)") - seems like I'm not dealing properly with
the filter mechanism somewhere.
2. What would you suggest is the best policy to handle resources in a more
"bundle private" manner - it seems that the DependencyManager -
ResourceDependency is great for cases where you want to say: Hey, anyone
who's interested in resource A, here you go, I'm providing it.
3. Is there another way of getting the BundleContext injected besides
defining a field like this (perhaps method injection) that I am not aware
of:
private volatile BundleContext context;
Thank again and regards,
Bokie
--
View this message in context:
http://apache-felix.18485.n6.nabble.com/DependencyManager-ResourceDependency-tp5000335p5000340.html
Sent from the Apache Felix - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]