@ThreadSafe public class DefaultTemplateFilesResolver extends java.lang.Object implements TemplateFilesResolver
| Constructor and Description |
|---|
DefaultTemplateFilesResolver() |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.List<java.net.URL> |
findSoyFiles(java.io.File baseDirectory,
boolean recursive) |
protected void |
findSoyFiles(java.util.List<java.net.URL> soyFiles,
java.io.File baseDirectory,
boolean recursive) |
java.lang.String |
getFilesExtension() |
java.lang.String |
getTemplatesLocation() |
boolean |
isHotReloadMode() |
boolean |
isRecursive() |
java.util.Collection<java.net.URL> |
resolve()
Iterate over all files and provide urls of files pointing to soy template files
|
com.google.common.base.Optional<java.net.URL> |
resolve(java.lang.String templateFileName)
Iterate over all files and provide a matching url for a template passed in as a parameter
|
void |
setFilesExtension(java.lang.String filesExtension) |
void |
setHotReloadMode(boolean hotReloadMode) |
void |
setRecursive(boolean recursive) |
void |
setTemplatesLocation(java.lang.String templatesLocation) |
public java.util.Collection<java.net.URL> resolve()
throws java.io.IOException
TemplateFilesResolverresolve in interface TemplateFilesResolverjava.io.IOExceptionpublic com.google.common.base.Optional<java.net.URL> resolve(@Nullable
java.lang.String templateFileName)
throws java.io.IOException
TemplateFilesResolverresolve in interface TemplateFilesResolverjava.io.IOExceptionprotected java.util.List<java.net.URL> findSoyFiles(java.io.File baseDirectory,
boolean recursive)
throws java.net.MalformedURLException
java.net.MalformedURLExceptionprotected void findSoyFiles(java.util.List<java.net.URL> soyFiles,
java.io.File baseDirectory,
boolean recursive)
throws java.net.MalformedURLException
java.net.MalformedURLExceptionpublic void setTemplatesLocation(java.lang.String templatesLocation)
public void setRecursive(boolean recursive)
public void setHotReloadMode(boolean hotReloadMode)
public java.lang.String getTemplatesLocation()
public boolean isRecursive()
public boolean isHotReloadMode()
public java.lang.String getFilesExtension()
public void setFilesExtension(java.lang.String filesExtension)