Let iPOJO register the inventory implementation

When we implemented BookInventoryMockImpl in Chapter 5, The Book Inventory Bundle, we used a BundleActivator and the BookInventoryMockImplActivator to register it with the framework on start. It was actually a good idea then, because, while in validation mode, we've also inserted books on start.

As all we need to do is register the service, we'll move it to iPOJO. It's an easy thing to do.

..................Content has been hidden....................

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