public Object execute(Void args) { Map<ClassInfo, Set<IService>> ret = delegate.getServiceMap(); return ret; } }, "getServiceMap");
/** * Remove an existing registry. * @param cid The component id to remove. */ public void removeSubregistry(IComponentIdentifier cid) { if(registries==null || !registries.containsKey(cid)) throw new RuntimeException("Registry not contained: "+cid); // Remove all services to trigger removed events IServiceRegistry reg = registries.get(cid); Map<ClassInfo, Set<IService>> sers = reg.getServiceMap(); if(sers!=null) { for(Map.Entry<ClassInfo, Set<IService>> entry: sers.entrySet()) { for(IService ser: entry.getValue()) { reg.removeService(entry.getKey(), ser); } } } registries.remove(cid); }
if(subreg!=null) RegistryEvent event = new RegistryEvent(subreg.getServiceMap(), null, eventslimit, timelimit); ret.addIntermediateResult(event);