org.teatrove.tea.engine
Interface Template

All Superinterfaces:
TemplateLoader.Template

public interface Template
extends TemplateLoader.Template

While Templates already have access to the loader that loaded them, this interface enables them to gain access to their TemplateSource. Also provide information about the source file of the template and the time it was last modified.

Author:
Jonathan Colwell

Method Summary
 long getLastModifiedTime()
          Returns the last (known) modified time of the template's source file
 File getSourceFile()
          Returns the .tea source file of this template
 TemplateSource getTemplateSource()
          Provides a reference to this Template's TemplateSource.
 
Methods inherited from interface org.teatrove.tea.runtime.TemplateLoader.Template
execute, getContextType, getName, getParameterNames, getParameterTypes, getTemplateClass, getTemplateLoader, toString
 

Method Detail

getTemplateSource

TemplateSource getTemplateSource()
Provides a reference to this Template's TemplateSource.


getSourceFile

File getSourceFile()
Returns the .tea source file of this template


getLastModifiedTime

long getLastModifiedTime()
Returns the last (known) modified time of the template's source file



Copyright © 1997-2012 TeaTrove.org. All Rights Reserved.