org.apache.geronimo.jmxdebug.web.velocity
Class WebappLoader
java.lang.Object
org.apache.velocity.runtime.resource.loader.ResourceLoader
org.apache.geronimo.jmxdebug.web.velocity.WebappLoader
- public class WebappLoader
- extends org.apache.velocity.runtime.resource.loader.ResourceLoader
Simple webapp loader. This code has been recycled from contributions to Velocity
by me.
- Version:
- $Id: WebappLoader.java,v 1.1 2004/02/18 15:33:41 geirm Exp $
Fields inherited from class org.apache.velocity.runtime.resource.loader.ResourceLoader |
className, isCachingOn, modificationCheckInterval, rsvc |
Method Summary |
long |
getLastModified(org.apache.velocity.runtime.resource.Resource resource)
Defaults to return 0 |
InputStream |
getResourceStream(String name)
Get an InputStream so that the Runtime can build a
template with it. |
void |
init(org.apache.commons.collections.ExtendedProperties configuration)
This is abstract in the base class, so we need it |
boolean |
isSourceModified(org.apache.velocity.runtime.resource.Resource resource)
Defaults to return false. |
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 |
servletContext
public javax.servlet.ServletContext servletContext
KEY
public static String KEY
WebappLoader
public WebappLoader()
init
public void init(org.apache.commons.collections.ExtendedProperties configuration)
- This is abstract in the base class, so we need it
getResourceStream
public InputStream getResourceStream(String name)
throws org.apache.velocity.exception.ResourceNotFoundException
- Get an InputStream so that the Runtime can build a
template with it.
- Parameters:
name
- name of template to get
- Returns:
- InputStream containing the template
- Throws:
org.apache.velocity.exception.ResourceNotFoundException
- if template not found
in classpath.
isSourceModified
public boolean isSourceModified(org.apache.velocity.runtime.resource.Resource resource)
- Defaults to return false.
getLastModified
public long getLastModified(org.apache.velocity.runtime.resource.Resource resource)
- Defaults to return 0
Copyright © 2003-2005 Apache Software Foundation. All Rights Reserved.