Chapter 4. Developing Bundles
In this chapter we describe how to develop bundles. First, we outline the steps to develop a bundle that provides a service, to supply multiple implementations for the same service interface, and to retrieve resources packaged inside the bundle. We then cover how to use services provided by another bundle. Next we discuss how to program service factories and their usefulness. In the section that follows, we explore how to develop library bundles that make class libraries available to be shared by other bundles. Lastly, we explain how to develop bundles that carry native code.
During the process of developing bundles, we introduce you to relevant APIs in the OSGi framework with examples. The complete API specification ...
Get Programming Open Service Gateways with Java Embedded Server™ Technology 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.