|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jamon.compiler.FileTemplateSource
public class FileTemplateSource
The standard implementation of TemplateSource which
retrieves templates from the filesystem location under a specified
root directory. By default, templates are expected to have extens
".jamon"; this can be overridden.
| Constructor Summary | |
|---|---|
FileTemplateSource(java.io.File p_templateSourceDir)
Construct a FileTemplateSource, using the default extension ".jamon". |
|
FileTemplateSource(java.io.File p_templateSourceDir,
java.lang.String p_extension)
Construct a FileTemplateSource, specifying a filename extension for templates. |
|
FileTemplateSource(java.lang.String p_templateSourceDir)
Construct a FileTemplateSource |
|
| Method Summary | |
|---|---|
boolean |
available(java.lang.String p_templatePath)
|
java.lang.String |
getExternalIdentifier(java.lang.String p_templatePath)
|
java.io.InputStream |
getStreamFor(java.lang.String p_templatePath)
|
org.jamon.api.TemplateLocation |
getTemplateLocation(java.lang.String p_templatePath)
|
long |
lastModified(java.lang.String p_templatePath)
|
void |
loadProperties(java.lang.String p_path,
java.util.Properties p_properties)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileTemplateSource(java.lang.String p_templateSourceDir)
p_templateSourceDir - the source directorypublic FileTemplateSource(java.io.File p_templateSourceDir)
p_templateSourceDir - the source directory
public FileTemplateSource(java.io.File p_templateSourceDir,
java.lang.String p_extension)
p_templateSourceDir - the source directoryp_extension - the filename extension for templates| Method Detail |
|---|
public long lastModified(java.lang.String p_templatePath)
lastModified in interface org.jamon.api.TemplateSourcepublic boolean available(java.lang.String p_templatePath)
available in interface org.jamon.api.TemplateSource
public java.io.InputStream getStreamFor(java.lang.String p_templatePath)
throws java.io.IOException
getStreamFor in interface org.jamon.api.TemplateSourcejava.io.IOExceptionpublic java.lang.String getExternalIdentifier(java.lang.String p_templatePath)
getExternalIdentifier in interface org.jamon.api.TemplateSourcepublic org.jamon.api.TemplateLocation getTemplateLocation(java.lang.String p_templatePath)
getTemplateLocation in interface org.jamon.api.TemplateSource
public void loadProperties(java.lang.String p_path,
java.util.Properties p_properties)
throws java.io.IOException
loadProperties in interface org.jamon.api.TemplateSourcejava.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||