Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 4. In-depth look at bundles and services

4. In-depth look at bundles and services

This chapter covers

  • Keeping bundle packages private to decrease exposure

  • Making bundle packages optional to improve flexibility

  • The wiring API

  • Understanding class loading in a bundle

  • Advanced use of service filtering

  • Service prioritization

  • Service factories

  • Unit testing and integration testing for robustness


In chapter 3, we developed our first OSGi-based application employing two important OSGi features: bundles and services. As you’ve seen, bundles allow you to modularize your code, which lends to better reuse of code. Likewise, services improve the decoupling between the bundles, which yields a more resilient and flexible system architecture.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint