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);
6667686970717273747576
spc.setReturnValue("hivemind.Startup"); sp.getServiceInterfaceClassName(); spc.setReturnValue(Runnable.class.getName()); sp.visibleToModule(null); spc.setReturnValue(true); sp.getService(Runnable.class); spc.setReturnValue(service);
176177178179180181182183184185186
} throw new ApplicationRuntimeException(ImplMessages.noSuchServicePoint(serviceId)); } if (!result.visibleToModule(module)) throw new ApplicationRuntimeException(ImplMessages.serviceNotVisible(serviceId, module)); return result; }
220221222223224225226227228229230
Iterator i = servicePoints.iterator(); while (i.hasNext()) { ServicePoint sp = (ServicePoint) i.next(); if (!sp.visibleToModule(module)) continue; point = sp; count++;
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() {
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
445446447448449450451452453454455
461462463464465466467468469470471