manager.unregister(clazz);
}
manager = null;
}
if (isSatisfied) {
Registry reg = new RegistryImpl(registry);
manager = new ManagerImpl(reg, registry);
reg.register(bundle.getBundleContext());
reg.register(manager);
for (Map.Entry<Class, Object> entry : state.getSingleServices().entrySet()) {
reg.register(entry.getValue());
}
for (final Map.Entry<Class, List> entry : state.getMultiServices().entrySet()) {
reg.register(new Callable() {
@Override
public Object call() throws Exception {
return entry.getValue();
}
}, entry.getKey());