return this.componentName;
}
@Override
public void updated(String pid, Dictionary<String, ?> properties) throws ConfigurationException {
XOUnit xoUnit;
try {
xoUnit = getXOUnit(properties);
} catch (XOException e) {
throw new ConfigurationException(XOUnitParameter.NAME.getKey(), e.getMessage(), e);
}
if (registeredXOUnits.contains(xoUnit.getName())) {
LOGGER.debug("Update not yet supported {}", pid);
return;
}
XOManagerFactory xoManagerFactory = new XOManagerFactoryImpl(xoUnit);
Dictionary<String, Object> p = new Hashtable<>();
p.put("name", xoUnit.getName());
ServiceRegistration<XOManagerFactory> serviceRegistration = componentContext.getBundleContext().registerService(XOManagerFactory.class, xoManagerFactory, p);
registeredXOUnits.add(xoUnit.getName());
pidsToFactories.put(pid, xoManagerFactory);
pidsToServiceRegistrations.put(pid, serviceRegistration);
}