java.lang.Object
org.apache.velocity.runtime.resource.loader.ResourceLoader
org.roller.presentation.velocity.WebappResourceLoader
- public class WebappResourceLoader
- extends org.apache.velocity.runtime.resource.loader.ResourceLoader
Tries to load Velocity resources from the Webapp.
This class borrows heavily from
org.apache.velocity.tools.view.servlet.WebappLoader
http://cvs.apache.org/viewcvs/jakarta-velocity-
tools/view/src/java/org/apache/velocity/tools/view/servlet/WebappLoader.java?
rev=1.1.1.1&content-type=text/vnd.viewcvs-markup
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
mLogger
private static org.apache.commons.logging.Log mLogger
mContext
private static javax.servlet.ServletContext mContext
WebappResourceLoader
public WebappResourceLoader()
init
public void init(org.apache.commons.collections.ExtendedProperties arg0)
- Description copied from class:
org.apache.velocity.runtime.resource.loader.ResourceLoader
- Initialize the template loader with a
a resources class.
getContext
private javax.servlet.ServletContext getContext()
setServletContext
public static void setServletContext(javax.servlet.ServletContext context)
getResourceStream
public java.io.InputStream getResourceStream(java.lang.String name)
throws org.apache.velocity.exception.ResourceNotFoundException
- Description copied from class:
org.apache.velocity.runtime.resource.loader.ResourceLoader
- Get the InputStream that the Runtime will parse
to create a template.
isSourceModified
public boolean isSourceModified(org.apache.velocity.runtime.resource.Resource arg0)
- Defaults to return false.
getLastModified
public long getLastModified(org.apache.velocity.runtime.resource.Resource arg0)
- Defaults to return 0.