|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.velocity.runtime.resource.loader.ResourceLoader
org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
org.melati.template.velocity.WebMacroClasspathResourceLoader
public class WebMacroClasspathResourceLoader
Loads templates from the classpath, mungs them if they are WM templates. Note that this does not allow modern WebMacro syntax with optionional #begin in #foreach.
| Field Summary |
|---|
| Fields inherited from class org.apache.velocity.runtime.resource.loader.ResourceLoader |
|---|
className, isCachingOn, log, modificationCheckInterval, rsvc |
| Constructor Summary | |
|---|---|
WebMacroClasspathResourceLoader()
|
|
| Method Summary | |
|---|---|
java.io.InputStream |
getResourceStream(java.lang.String templateName)
Get an InputStream so that the Runtime can build a template with it, munge it if it is a WM template. |
| Methods inherited from class org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader |
|---|
getLastModified, init, isSourceModified |
| Methods inherited from class org.apache.velocity.runtime.resource.loader.ResourceLoader |
|---|
commonInit, getClassName, getModificationCheckInterval, isCachingOn, setCachingOn, setModificationCheckInterval |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WebMacroClasspathResourceLoader()
| Method Detail |
|---|
public java.io.InputStream getResourceStream(java.lang.String templateName)
throws org.apache.velocity.exception.ResourceNotFoundException
getResourceStream in class org.apache.velocity.runtime.resource.loader.ClasspathResourceLoadertemplateName - name of template to get
org.apache.velocity.exception.ResourceNotFoundException - if template not found
in the file template path.ResourceLoader
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||