@Test public void testGetServiceProvider() { PServiceProvider srv = registry.getServiceProvider("calculator.Calculator", "number"); assertThat(srv.getService().getQualifiedName(), is(Calculator.kDescriptor.getQualifiedName())); }
@Nonnull @Override public PServiceProvider getServiceProvider(String serviceName, String programContext) { return handle(serviceName, programContext, true, r -> r.getServiceProvider(serviceName, programContext)); }
ProgramRegistry implements TypeRegistry { @Nonnull @Override public PServiceProvider getServiceProvider(String serviceName, String programContext) { return handle(serviceName, programContext, true, r -> r.getServiceProvider(serviceName, programContext)); } }
ProgramRegistry implements TypeRegistry { @Nonnull @Override public PServiceProvider getServiceProvider(String serviceName, String programContext) { return handle(serviceName, programContext, true, r -> r.getServiceProvider(serviceName, programContext)); } ProgramRegistry(); }
ProgramRegistry implements TypeRegistry { @Nonnull @Override public PServiceProvider getServiceProvider(String serviceName, String programContext) { return handle(serviceName, programContext, true, r -> r.getServiceProvider(serviceName, programContext)); } ProgramRegistry(); @Nonnull ProgramTypeRegistry registryForPath(String path); @Nonnull Collection<ProgramTypeRegistry> getLoadedRegistries(); boolean containsProgramPath(String path); void putProgram(String path, CProgram program); void putProgramType(String path, ProgramType program); @Nonnull @Override T getDeclaredType(@Nonnull String typeName,
                                                                @Nonnull String programContext); @Nullable @Override T getConstantValue(@Nonnull String constReference, @Nonnull String programContext); @Nonnull @Override PService getService(String serviceName, String programContext); @Nonnull @Override PDescriptorProvider getProvider(String typeName, String programContext, Map<String, String> annotations); @Nonnull @Override PServiceProvider getServiceProvider(String serviceName, String programContext); }
ProgramRegistry implements TypeRegistry { @Nonnull @Override public PServiceProvider getServiceProvider(String serviceName, String programContext) { return handle(serviceName, programContext, true, r -> r.getServiceProvider(serviceName, programContext)); } ProgramRegistry(); @Nonnull ProgramTypeRegistry registryForPath(String path); @Nonnull Collection<ProgramTypeRegistry> getLoadedRegistries(); boolean containsProgramPath(String path); void putProgram(String path, CProgram program); void putProgramType(String path, ProgramType program); @Nonnull @Override T getDeclaredType(@Nonnull String typeName,
                                                                @Nonnull String programContext); @Nullable @Override T getConstantValue(@Nonnull String constReference, @Nonnull String programContext); @Nonnull @Override PService getService(String serviceName, String programContext); @Nonnull @Override PDescriptorProvider getProvider(String typeName, String programContext, Map<String, String> annotations); @Nonnull @Override PServiceProvider getServiceProvider(String serviceName, String programContext);  }