August 2001
Intermediate to advanced
480 pages
9h 14m
English
If your service depends on the presence of another service, and there is a realistic chance that the other service may be unregistered at some point in time—perhaps because the service-providing bundle undergoes an update—you should program your service to protect yourself[1] from that event.
[1] That is, put yourself in the shoes of the client bundle in this chapter.
Such safeguard measures add quite a bit of complexity to your service, but the complexity is inherent in the component-based model. In the world of the OSGi framework, the earth does stand on top of giant tortoises, and you do not want to be thrown flat on your face when the ground moves away from under your feet!
The following sections list ...
Read now
Unlock full access