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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access