1
edit
Changes
no edit summary
}
}
:d) Edit ChatActivator.java to add the following:
import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;
import cs.dps914.osgi.lab.chatinterface.IChatSystem;
import cs.dps914.osgi.lab.provider.internals.SimpleChatSystem;
and
public void start(BundleContext bundleContext) throws Exception {
ChatActivator.context = bundleContext;
IChatSystem vs=new SimpleChatSystem();
context.registerService(IChatSystem.class.getName(),vs,null);
}