@Test public void resolveDebugOffRecursiveOn() throws Exception { final Collection<URL> urls = templateFilesResolver.resolve(); Assert.assertEquals("should resolve urls", 5, urls.size()); Set<String> names = nab_template_names(urls); for (final String s : new String[] {"template1", "template2", "template3", "sub/template4", "sub/template5"}) { Assert.assertTrue(s + " must be in the set of resolved templates.", names.contains("templates/" + s + ".soy")); } }
@Override public Collection<URL> resolve() throws IOException { Preconditions.checkNotNull(templatesLocation, "templatesLocation cannot be null!"); return Collections.unmodifiableCollection(handleResolution()); }
ClasspathTemplateFilesResolver implements TemplateFilesResolver, InitializingBean { @Override public Collection<URL> resolve() throws IOException { Preconditions.checkNotNull(templatesLocation, "templatesLocation cannot be null!"); return Collections.unmodifiableCollection(handleResolution()); } }
ClasspathTemplateFilesResolver implements TemplateFilesResolver, InitializingBean { @Override public Collection<URL> resolve() throws IOException { Preconditions.checkNotNull(templatesLocation, "templatesLocation cannot be null!"); return Collections.unmodifiableCollection(handleResolution()); }  }
ClasspathTemplateFilesResolver implements TemplateFilesResolver, InitializingBean { @Override public Collection<URL> resolve() throws IOException { Preconditions.checkNotNull(templatesLocation, "templatesLocation cannot be null!"); return Collections.unmodifiableCollection(handleResolution()); }  @Override void afterPropertiesSet(); @Override Collection<URL> resolve(); @Override Optional<URL> resolve(final @Nullable String templateFileName); void setTemplatesLocation(String templatesLocation); void setRecursive(boolean recursive); void setHotReloadMode(boolean hotReloadMode); String getTemplatesLocation(); boolean isRecursive(); boolean isHotReloadMode(); String getFilesExtension(); void setFilesExtension(String filesExtension); }
ClasspathTemplateFilesResolver implements TemplateFilesResolver, InitializingBean { @Override public Collection<URL> resolve() throws IOException { Preconditions.checkNotNull(templatesLocation, "templatesLocation cannot be null!"); return Collections.unmodifiableCollection(handleResolution()); }  @Override void afterPropertiesSet(); @Override Collection<URL> resolve(); @Override Optional<URL> resolve(final @Nullable String templateFileName); void setTemplatesLocation(String templatesLocation); void setRecursive(boolean recursive); void setHotReloadMode(boolean hotReloadMode); String getTemplatesLocation(); boolean isRecursive(); boolean isHotReloadMode(); String getFilesExtension(); void setFilesExtension(String filesExtension);  }