jste.template
Interface Repository

All Known Implementing Classes:
FileRepository

public interface Repository

A Repository stores the template strings used for template expansion. For example, a repository can consist of the files in a particular directory, or the files inside a jar file. When the document.include call is invoked, the included template will be sought in the same repository as the including template.


Method Summary
 java.lang.String getResource(java.lang.String resourceName)
          Return the string with the specified name.
 java.util.Date lastModifiedTime(java.lang.String resourceName)
          Return the last time at which the string with the specified name was modified.
 

Method Detail

getResource

java.lang.String getResource(java.lang.String resourceName)
                             throws java.lang.Exception
Return the string with the specified name.

Throws:
java.lang.Exception

lastModifiedTime

java.util.Date lastModifiedTime(java.lang.String resourceName)
                                throws java.lang.Exception
Return the last time at which the string with the specified name was modified. This method is used to support template caching.

Throws:
java.lang.Exception