|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jamon.ResourceTemplateSource
public class ResourceTemplateSource
An implementation of TemplateSource which retrieves
templates from Java resources.
| Constructor Summary | |
|---|---|
ResourceTemplateSource(ClassLoader p_classLoader,
String p_templateSourceDir)
|
|
ResourceTemplateSource(ClassLoader p_classLoader,
String p_templateSourceDir,
String p_extension)
Construct a ResourceTemplateSource, specifying a filename extension for templates. |
|
| Method Summary | |
|---|---|
boolean |
available(String p_templatePath)
Determines whether the indicated template source is available. |
String |
getExternalIdentifier(String p_templatePath)
Get an identifying string for the specified template. |
InputStream |
getStreamFor(String p_templatePath)
Get a InputStream for the source of the specified template. |
TemplateLocation |
getTemplateLocation(String p_templatePath)
|
long |
lastModified(String p_templatePath)
Determines when the indicated template was last modified, in ms since the epoch. |
void |
loadProperties(String p_dirPath,
Properties p_properties)
Load any properties that might be used to influence the processing of templates within the specified directory. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ResourceTemplateSource(ClassLoader p_classLoader,
String p_templateSourceDir)
public ResourceTemplateSource(ClassLoader p_classLoader,
String p_templateSourceDir,
String p_extension)
p_classLoader - the classloader to use to load resourcesp_templateSourceDir - the source directoryp_extension - the filename extension for templates| Method Detail |
|---|
public long lastModified(String p_templatePath)
throws IOException
TemplateSource
lastModified in interface TemplateSourcep_templatePath - the path to the template
IOExceptionpublic boolean available(String p_templatePath)
TemplateSource
available in interface TemplateSourcep_templatePath - the path to the template
public InputStream getStreamFor(String p_templatePath)
throws IOException
TemplateSourceInputStream for the source of the specified template.
getStreamFor in interface TemplateSourcep_templatePath - the path to the template
IOExceptionpublic String getExternalIdentifier(String p_templatePath)
TemplateSource
getExternalIdentifier in interface TemplateSourcep_templatePath - the path to the template
public TemplateLocation getTemplateLocation(String p_templatePath)
getTemplateLocation in interface TemplateSource
public void loadProperties(String p_dirPath,
Properties p_properties)
throws IOException
TemplateSource
loadProperties in interface TemplateSourcep_dirPath - The directory to to look forp_properties - The Properties instance to add any found
properties to.
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||