_services.put(id, svc);
return svc;
}
+
+ @Override
+ public void remove(Service aService) {
+ Service svc = _services.remove(aService.getId());
+ if ( svc == null ) {
+ throw new IllegalArgumentException("Service '" + aService.getId() + "' does not exist");
+ }
+ }
@Override
public synchronized Service find(String id) {