O'Reilly logo

OSGi and Apache Felix 3.0 by Walid Joseph Gédéon

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 9. Improve the Bookshelf Service with iPOJO

So far, you've noticed while implementing our case study that we've used the bundle activator to register services with the framework. We've also looked at them from the framework's perspective when we needed to use them.

However, we've had to look up the service every time it was needed, to ensure that we always have the latest valid instance that is registered with the framework.

A developer may add a listener to framework activity (a service tracker) and update references on changes to dependencies of interest. Not only is this a more complex functionality to implement, but the resulting code is also mostly boiler-plate, that is, it is very similar from bundle to bundle one usually ends up copying ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required