487488489490491492493494495496497
Iterator i = servicePoints.iterator(); while (i.hasNext()) { ServicePoint point = (ServicePoint) i.next(); if (point.visibleToModule(module)) count++; } return count == 1; }
503504505506507508509510511512513
ServicePoint point = (ServicePoint) _servicePoints.get(serviceId); if (point == null) return false; return point.visibleToModule(module) && point.getServiceInterface().equals(serviceInterface); } public ErrorHandler getErrorHander() {
586587588589590591592593594595596
final List serviceIds = new LinkedList(); for( Iterator i = _servicePoints.values().iterator(); i.hasNext(); ) { final ServicePoint servicePoint = ( ServicePoint )i.next(); if( servicePoint.getServiceInterface().equals( serviceInterface ) && servicePoint.visibleToModule( null ) ) { serviceIds.add( servicePoint.getExtensionPointId() ); } }
132133134135136137138139140141142
spc.setReturnValue("hivemind.Startup"); sp.getServiceInterfaceClassName(); spc.setReturnValue(Runnable.class.getName()); sp.visibleToModule(null); spc.setReturnValue(true); sp.getService(Runnable.class); spc.setReturnValue(service);
155156157158159160161162163164165
ServicePoint result = (ServicePoint) _servicePoints.get(serviceId); if (result == null) throw new ApplicationRuntimeException(ImplMessages.noSuchServicePoint(serviceId)); if (!result.visibleToModule(module)) throw new ApplicationRuntimeException(ImplMessages.serviceNotVisible(serviceId, module)); return result; }
185186187188189190191192193194195
Iterator i = servicePoints.iterator(); while (i.hasNext()) { ServicePoint sp = (ServicePoint) i.next(); if (!sp.visibleToModule(module)) continue; point = sp; count++;
445446447448449450451452453454455
461462463464465466467468469470471
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);