Package freemarker.cache
Interface SecureTemplateLoader
-
- All Superinterfaces:
TemplateLoader
- All Known Implementing Classes:
ClassTemplateLoader,FileTemplateLoader,MultiTemplateLoader,URLTemplateLoader,WebappTemplateLoader
public interface SecureTemplateLoader extends TemplateLoader
A template loader that is able to provide a code source for the template.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CodeSourcegetCodeSource(Object templateSource)Returns a code source for a template source.-
Methods inherited from interface freemarker.cache.TemplateLoader
closeTemplateSource, findTemplateSource, getLastModified, getReader
-
-
-
-
Method Detail
-
getCodeSource
CodeSource getCodeSource(Object templateSource) throws IOException
Returns a code source for a template source.- Parameters:
templateSource- the template source for which a code source is requested.- Returns:
- the code source for the specified template source, or null if it can not be obtained
- Throws:
IOException- if an I/O exception occurs while trying to obtain the code source.
-
-