Summary

In this chapter, we've introduced iPOJO and the way it simplifies integrating with a framework by providing inversion of control functionality.

By now, you should be able to:

  • Declare a component to be registered by iPOJO without the need for a BundleActivator using both iPOJO configuration means (XML and annotations)
  • Declare fields that a component requires and ask iPOJO to inject them, when they become available, and update them as they move through their life-cycle

We have also migrated our case study to use iPOJO. We have:

  • Updated the bookshelf-inventory-impl-mock bundle to use iPOJO to register its inventory implementation
  • Updated the bookshelf-service and bookshelf-service-tui to also use iPOJO to register them and to inject their dependencies (BookInventory and BookshelfService respectively.)
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset