org.ogf.graap.wsag.server.actions.impl
Class ClasspathResourceLoader
java.lang.Object
org.apache.velocity.runtime.resource.loader.ResourceLoader
org.ogf.graap.wsag.server.actions.impl.ClasspathResourceLoader
public class ClasspathResourceLoader
- extends org.apache.velocity.runtime.resource.loader.ResourceLoader
Resource loader that loads velocity resources from the classpath.
- Author:
- owaeld
Fields inherited from class org.apache.velocity.runtime.resource.loader.ResourceLoader |
className, isCachingOn, log, 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 |
ClasspathResourceLoader
public ClasspathResourceLoader()
init
public void init(org.apache.commons.collections.ExtendedProperties configuration)
- This is abstract in the base class, so we need it.
- Specified by:
init
in class org.apache.velocity.runtime.resource.loader.ResourceLoader
getResourceStream
public InputStream getResourceStream(String name)
- Get an InputStream so that the Runtime can build a template with it.
- Specified by:
getResourceStream
in class org.apache.velocity.runtime.resource.loader.ResourceLoader
- Parameters:
name
- name of template to get
- Returns:
- InputStream containing the template
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
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
Copyright © 2008-2012. All Rights Reserved.