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 Details

    • 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.