Chapter 2. An OSGi framework primer

 

This chapter covers
  • Creating and sharing OSGi bundles
  • Importing and exporting bundle packages
  • Running bundles in an OSGi framework
  • Defining and retrieving OSGi services
  • Understanding the OSGi service registry

 

In this chapter you’ll expand your knowledge of the OSGi framework. I’ll describe two of the most important concepts related to OSGi: bundles and services. Bundles and services are the cornerstone of OSGi, and we’ll keep revisiting these two concepts throughout this book.

We’ll also cover the OSGi service registry and several less common, albeit still essential, APIs of the framework, such as the event listener interfaces.

As tradition dictates, to learn the basics, we’ll use an OSGi-powered ...

Get OSGi in Depth 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.