net.sf.jameleon.util
Class VelocityClasspathResourceLoader
java.lang.Object
org.apache.velocity.runtime.resource.loader.ResourceLoader
org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
net.sf.jameleon.util.VelocityClasspathResourceLoader
public class VelocityClasspathResourceLoader
- extends org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
Fields inherited from class org.apache.velocity.runtime.resource.loader.ResourceLoader |
className, isCachingOn, modificationCheckInterval, rsvc |
Method Summary |
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)
|
Methods inherited from class org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader |
getLastModified, 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 |
VelocityClasspathResourceLoader
public VelocityClasspathResourceLoader()
init
public void init(org.apache.commons.collections.ExtendedProperties configuration)
- Overrides:
init
in class org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
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.
- Overrides:
getResourceStream
in class org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
- Parameters:
name
- name of template to get
- Returns:
- InputStream containing the template
- Throws:
org.apache.velocity.exception.ResourceNotFoundException
- if template not found
in classpath.
Copyright © 2003-2008 Christian Hargraves. All Rights Reserved.