177178179180181182183184185186187
} } throw new ApplicationRuntimeException(ImplMessages.noSuchServicePoint(serviceId)); } if (!result.visibleToModule(module)) throw new ApplicationRuntimeException(ImplMessages.serviceNotVisible(serviceId, module)); return result; }
222223224225226227228229230231232
Iterator i = servicePoints.iterator(); while (i.hasNext()) { ServicePoint sp = (ServicePoint) i.next(); if (!sp.visibleToModule(module)) continue; point = sp; count++;
503504505506507508509510511512513
Iterator i = servicePoints.iterator(); while (i.hasNext()) { ServicePoint point = (ServicePoint) i.next(); if (point.visibleToModule(module)) count++; } return count == 1; }
519520521522523524525526527528529
ServicePoint point = (ServicePoint) _servicePoints.get(serviceId); if (point == null) return false; return point.visibleToModule(module) && point.getServiceInterface().equals(serviceInterface); } public ErrorHandler getErrorHander() {
609610611612613614615616617618619
for (Iterator i = _servicePoints.values().iterator(); i.hasNext();) { final ServicePoint servicePoint = (ServicePoint) i.next(); if (serviceInterface.getName().equals( servicePoint.getServiceInterfaceClassName() ) && servicePoint.visibleToModule(null)) { serviceIds.add(servicePoint.getExtensionPointId()); } }
119120121122123124125126127128129
spc.setReturnValue("foo.bar.Baz"); sp.getServiceInterfaceClassName(); spc.setReturnValue(Runnable.class.getName()); sp.visibleToModule(null); spc.setReturnValue(false); replayControls(); rf.addServicePoint(sp);
158159160161162163164165166167168
spc.setReturnValue("foo.bar.Baz"); sp.getServiceInterfaceClassName(); spc.setReturnValue(Runnable.class.getName()); sp.visibleToModule(m); spc.setReturnValue(false); replayControls(); rf.addServicePoint(sp);
248249250251252253254255256257258
spc2.setReturnValue(ObjectProvider.class.getName()); sp1.visibleToModule(null); spc1.setReturnValue(false); sp2.visibleToModule(null); spc2.setReturnValue(true); sp2.getService(ObjectProvider.class); spc2.setReturnValue(service);
176177178179180181182183184185186
} throw new ApplicationRuntimeException(ImplMessages.noSuchServicePoint(serviceId)); } if (!result.visibleToModule(module)) throw new ApplicationRuntimeException(ImplMessages.serviceNotVisible(serviceId, module)); return result; }
220221222223224225226227228229230