return;
}
Hashtable registrationProperties = objName.getKeyPropertyList();
registrationProperties.put("domain", objName.getDomain());
if (registeredServices.containsKey(objName)) {
ServiceRegistration registration = (ServiceRegistration) registeredServices.get(objName);
registration.setProperties(registrationProperties);
return;
}
Set serviceNames = new HashSet();
computeOSGiServiceNames(obj.getClass(), obj, serviceNames);
ServiceRegistration registration = Activator.context.registerService((String[]) serviceNames.toArray(new String[serviceNames.size()]), obj, registrationProperties);
registeredServices.put(objName, registration);
}