Chapter 5. Services
This chapter moves beyond the notion of bundles and presents the concept of services. Services further decouple bundles by allowing them to collaborate without depending on a particular implementation or packaging. This in turn makes your systems more flexible and opens the door to dynamic collaboration, updating, extension, and reconfiguration.
The goals of this chapter are to
• Introduce services and their use
• Refactor the implementation of Toast to use services
• Discuss the dynamic behavior of services and show some of the application design points that promote and inhibit dynamism
5.1 Moving to Services
In Chapter 2, “OSGi Concepts,” we talked about how modularizing your system gives you the power to compose functional ...
Get OSGi and Equinox now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.