net.sf.doolin.template.velocity
Class VelocityResourceLoader
java.lang.Object
org.apache.velocity.runtime.resource.loader.ResourceLoader
net.sf.doolin.template.velocity.VelocityResourceLoader
public class VelocityResourceLoader
- extends org.apache.velocity.runtime.resource.loader.ResourceLoader
- Author:
- Damien Coraboeuf
| 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)
Loads the resource from classpath |
void |
init(org.apache.commons.collections.ExtendedProperties configuration)
Nothing to initialize |
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, resourceExists, setCachingOn, setModificationCheckInterval |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VelocityResourceLoader
public VelocityResourceLoader()
getLastModified
public long getLastModified(org.apache.velocity.runtime.resource.Resource resource)
- Defaults to return 0
- Specified by:
getLastModified in class org.apache.velocity.runtime.resource.loader.ResourceLoader
getResourceStream
public InputStream getResourceStream(String name)
throws org.apache.velocity.exception.ResourceNotFoundException
- Loads the resource from classpath
- Specified by:
getResourceStream in class org.apache.velocity.runtime.resource.loader.ResourceLoader
- Throws:
org.apache.velocity.exception.ResourceNotFoundException
init
public void init(org.apache.commons.collections.ExtendedProperties configuration)
- Nothing to initialize
- Specified by:
init in class org.apache.velocity.runtime.resource.loader.ResourceLoader
isSourceModified
public boolean isSourceModified(org.apache.velocity.runtime.resource.Resource resource)
- Defaults to return false.
- Specified by:
isSourceModified in class org.apache.velocity.runtime.resource.loader.ResourceLoader
Copyright © 2011. All Rights Reserved.