@Test public void getSourceTest() throws Exception { final SourceIdentifier sourceIdentifier = RevisionSourceIdentifier.create("odl-datastore-test", Revision.of("2014-03-13")); final YangTextSchemaSource yangTextSchemaSource = schemaService.getSource(sourceIdentifier).get(); final Collection<String> lines = IOUtil.readLines(yangTextSchemaSource.openStream()); assertEquals("module odl-datastore-test {", lines.iterator().next()); }
@Override public ListenableFuture<? extends YangTextSchemaSource> getSource(final SourceIdentifier sourceIdentifier) { return contextResolver.getSource(sourceIdentifier); }
ScanningSchemaServiceProvider extends AbstractDOMSchemaService.WithYangTextSources implements AutoCloseable { @Override public ListenableFuture<? extends YangTextSchemaSource> getSource(final SourceIdentifier sourceIdentifier) { return contextResolver.getSource(sourceIdentifier); } }
ScanningSchemaServiceProvider extends AbstractDOMSchemaService.WithYangTextSources implements AutoCloseable { @Override public ListenableFuture<? extends YangTextSchemaSource> getSource(final SourceIdentifier sourceIdentifier) { return contextResolver.getSource(sourceIdentifier); }  }
ScanningSchemaServiceProvider extends AbstractDOMSchemaService.WithYangTextSources implements AutoCloseable { @Override public ListenableFuture<? extends YangTextSchemaSource> getSource(final SourceIdentifier sourceIdentifier) { return contextResolver.getSource(sourceIdentifier); }  void tryToUpdateSchemaContext(); @VisibleForTesting @SuppressWarnings("checkstyle:IllegalCatch") void notifyListeners(final EffectiveModelContext schemaContext); List<Registration> registerAvailableYangs(final List<URL> yangs); boolean hasListeners(); @Override EffectiveModelContext getGlobalContext(); @Override ListenerRegistration<EffectiveModelContextListener> registerSchemaContextListener(
            final EffectiveModelContextListener listener); @Override ListenableFuture<? extends YangTextSchemaSource> getSource(final SourceIdentifier sourceIdentifier); @Override void close(); }
ScanningSchemaServiceProvider extends AbstractDOMSchemaService.WithYangTextSources implements AutoCloseable { @Override public ListenableFuture<? extends YangTextSchemaSource> getSource(final SourceIdentifier sourceIdentifier) { return contextResolver.getSource(sourceIdentifier); }  void tryToUpdateSchemaContext(); @VisibleForTesting @SuppressWarnings("checkstyle:IllegalCatch") void notifyListeners(final EffectiveModelContext schemaContext); List<Registration> registerAvailableYangs(final List<URL> yangs); boolean hasListeners(); @Override EffectiveModelContext getGlobalContext(); @Override ListenerRegistration<EffectiveModelContextListener> registerSchemaContextListener(
            final EffectiveModelContextListener listener); @Override ListenableFuture<? extends YangTextSchemaSource> getSource(final SourceIdentifier sourceIdentifier); @Override void close();  }