props.put(Constants.SERVICE_PID, servicePid);
return context.registerService(serviceClass.getName(), service, props);
}
private Extension createOsgiBusListenerExtension(BundleContext context) {
Extension busListener = new Extension(OSGIBusListener.class);
busListener.setArgs(new Object[] {context});
return busListener;
}