How do you set dependencies on services? [message #58734] |
Fri, 27 January 2006 20:23 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: ronaldbaldwin.gmail.com
Is there a way to set service dependencies on a bundle?
For example, I have a bundle that uses various OSGi services like Http and Log. How do I configure the bundle so it doesn't get started until the services exist and gets stopped when they go away?
It looks like the Start Level service could get the job done, but that seems like a pretty error-prone manual process and requires you to know/change configuration for bundles other than your own. Another option would be to set a service listener to watch for the services you need and manually track your own dependencies, but I'm thinking there has to be a more straight-forward way of solving this.
Any ideas?
|
|
|
|
|
|
Re: How do you set dependencies on services? [message #59606 is a reply to message #58854] |
Fri, 03 February 2006 00:38 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: ronaldbaldwin.gmail.com
Yeah, it doesn't look like it's been touched in a while. Fortunately, I think I've got a decent handle on Declarative Services so I don't think it'll be necessary. Thanks for the pointer though!
|
|
|
|
Powered by
FUDForum. Page generated in 0.03468 seconds