@Test public void shouldBePossibleToSearchForNonRegisteredService() { DefaultServiceRegistry registry = new DefaultServiceRegistry(); List<Service> services = registry.getServices(new QName("unRegisteredService")); Assert.assertThat(services.size(), is(0)); }
@Override public synchronized List<Service> getServices() { List<Service> serviceList = new LinkedList<Service>(); for (List<Service> services : _services.values()) { serviceList.addAll(services); } return serviceList; }
DefaultServiceRegistry implements ServiceRegistry { @Override public synchronized List<Service> getServices() { List<Service> serviceList = new LinkedList<Service>(); for (List<Service> services : _services.values()) { serviceList.addAll(services); } return serviceList; } }
DefaultServiceRegistry implements ServiceRegistry { @Override public synchronized List<Service> getServices() { List<Service> serviceList = new LinkedList<Service>(); for (List<Service> services : _services.values()) { serviceList.addAll(services); } return serviceList; }  }
DefaultServiceRegistry implements ServiceRegistry { @Override public synchronized List<Service> getServices() { List<Service> serviceList = new LinkedList<Service>(); for (List<Service> services : _services.values()) { serviceList.addAll(services); } return serviceList; }  @Override synchronized List<Service> getServices(); @Override synchronized List<Service> getServices(QName serviceName); @Override synchronized Service registerService(Service service); @Override synchronized void unregisterService(Service service); @Override void registerServiceReference(ServiceReference reference); @Override void unregisterServiceReference(ServiceReference reference); @Override List<ServiceReference> getServiceReferences(); @Override ServiceReference getServiceReference(QName serviceName); }
DefaultServiceRegistry implements ServiceRegistry { @Override public synchronized List<Service> getServices() { List<Service> serviceList = new LinkedList<Service>(); for (List<Service> services : _services.values()) { serviceList.addAll(services); } return serviceList; }  @Override synchronized List<Service> getServices(); @Override synchronized List<Service> getServices(QName serviceName); @Override synchronized Service registerService(Service service); @Override synchronized void unregisterService(Service service); @Override void registerServiceReference(ServiceReference reference); @Override void unregisterServiceReference(ServiceReference reference); @Override List<ServiceReference> getServiceReferences(); @Override ServiceReference getServiceReference(QName serviceName);  }