O'Reilly logo

OSGi in Action: Creating Modular Applications in Java by David Savage, Stuart McCulloch, Karl Pauls, Richard Hall

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 2. Mastering modularity

 

This chapter covers
  • Understanding modularity and why it’s desirable
  • Using metadata to describe OSGi bundles (aka modules)
  • Explaining how bundle metadata is used to manage code visibility
  • Illustrating how bundles are used to create an application

 

In the previous chapter, we took a whistle-stop tour of the OSGi landscape. We made a number of observations about how standard Java is broken with respect to modularity and gave you examples where OSGi can help. We also introduced you to some OSGi concepts, including the core layers of the OSGi framework: module, life-cycle, and service.

In this chapter, we’ll deal specifically with the module layer, because its features are the initial attraction for most Java ...

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