Code example for Hashtable

Methods: put

public class Activator implements BundleActivator { 
    public void start(BundleContext context) throws Exception {
        Dictionary<String, String> restProps = new Hashtable<String, String>();
        restProps.put("service.exported.interfaces", "*");
        restProps.put("service.exported.configs", "");
        restProps.put("service.exported.intents", "HTTP");
        restProps.put("", MessageWriterProvider.class.getName());
        restProps.put("", "http://localhost:8080/");
        context.registerService(MyService.class.getName(), new MyServiceImpl(), restProps);
    public void stop(BundleContext context) throws Exception {
Connect your IDE to all the code out there  Get Codota for Java