return this.componentName;
}
@Override
public void updated(String pid, Dictionary<String, ?> properties) throws ConfigurationException {
CdoUnit cdoUnit;
try {
cdoUnit = getCdoUnit(properties);
} catch (CdoException e) {
throw new ConfigurationException(CdoUnitParameter.NAME.getKey(), e.getMessage(), e);
}
if (registeredCdoUnits.contains(cdoUnit.getName())) {
LOGGER.debug("Update not yet supported {}", pid);
return;
}
CdoManagerFactory cdoManagerFactory = new CdoManagerFactoryImpl<>(cdoUnit);
Dictionary<String, Object> p = new Hashtable<>();
p.put("name", cdoUnit.getName());
ServiceRegistration<CdoManagerFactory> serviceRegistration = componentContext.getBundleContext().registerService(CdoManagerFactory.class,
cdoManagerFactory, p);
registeredCdoUnits.add(cdoUnit.getName());
pidsToFactories.put(pid, cdoManagerFactory);
pidsToServiceRegistrations.put(pid, serviceRegistration);
}