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
Iterator i = servicePoints.iterator(); while (i.hasNext()) { ServicePoint point = (ServicePoint) i.next(); if (point.visibleToModule(module)) count++; } return count == 1; }
461462463464465466467468469470471
ServicePoint point = (ServicePoint) _servicePoints.get(serviceId); if (point == null) return false; return point.visibleToModule(module) && point.getServiceInterface().equals(serviceInterface); } public ErrorHandler getErrorHander() {
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);
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);
206207208209210211212213214215216
Schema schema = (Schema) _schemas.get(qualifiedSchemaId); if (schema == null) _errorHandler .error(LOG, XmlImplMessages.unableToResolveSchema(qualifiedSchemaId), location, null); else if (!schema.visibleToModule(referencingModule)) { _errorHandler.error( LOG, XmlImplMessages.schemaNotVisible(qualifiedSchemaId, referencingModule), location,
488489490491492493494495496497498
Schema schema = (Schema) _schemas.get(schemaId); if (schema == null) _errorHandler .error(_log, ImplMessages.unableToResolveSchema(schemaId), reference, null); else if (!schema.visibleToModule(referencingModule)) { _errorHandler.error( _log, ImplMessages.schemaNotVisible(schemaId, referencingModule), reference,