@Override public Collection<DistributedObject> getAllDistributedObjects() { Collection<DistributedObject> result = new LinkedList<DistributedObject>(); for (ProxyRegistry registry : registries.values()) { registry.getDistributedObjects(result); } return result; }
@Override public Collection<DistributedObject> getAllDistributedObjects() { Collection<DistributedObject> result = new LinkedList<DistributedObject>(); for (ProxyRegistry registry : registries.values()) { registry.getDistributedObjects(result); } return result; }
@Override public Collection<DistributedObject> getDistributedObjects(String serviceName) { checkServiceNameNotNull(serviceName); Collection<DistributedObject> result = new LinkedList<DistributedObject>(); ProxyRegistry registry = registries.get(serviceName); if (registry != null) { registry.getDistributedObjects(result); } return result; }
@Override public Collection<DistributedObject> getDistributedObjects(String serviceName) { checkServiceNameNotNull(serviceName); Collection<DistributedObject> result = new LinkedList<DistributedObject>(); ProxyRegistry registry = registries.get(serviceName); if (registry != null) { registry.getDistributedObjects(result); } return result; }