ungetService [message #131294] |
Fri, 15 May 2009 13:24  |
Eclipse User |
|
|
|
Hi to everybody.
Hi have a struggle to start learning something of osgi.
Now I'm facing this issue: if I register a service s and then I retrieve
the list of services this way:
ServiceReference[] sr = bc.getAllServiceReferences(..);
(where bc is an instance of BundleContext)
i can in fact found s somewhere in sr.
Well: now, in order to eliminate s, (that is not permitting it can be used
again), I used bc.ungetService(s).
After successful execution of ungetService (it returned true), sr was not
changed: in fact I could found again s as a member of sr. (sr was obtained
via a new statement bc.getAllServiceReferences).
So I can't understand what ungetService does. What does it mean
"ungetService(ServiceReference reference)
Releases the service object referenced by the specified
ServiceReference object" ?
Thanks for your attention
Andrea
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03335 seconds