Now that we have the search
command working, we're about to implement the add
command. Therefore, we will no longer need the part of the bookshelf-service
activator that inserts books at startup.
Let's remove that call by using:
public class BookshelfServiceImplActivator implements BundleActivator
{
ServiceRegistration reg = null;
public void start(BundleContext context) throws Exception
{
this.reg = context.registerService(
BookshelfService.class.getName(),
new BookshelfServiceImpl(context), null);
// testService(context);
}
// ...
For now, I've just commented the call to testService()
, but it can be removed.