org.niggle.templates.velocityimpl
Class CustomResourceLoader
java.lang.Object
|
+--org.apache.velocity.runtime.resource.loader.ResourceLoader
|
+--org.niggle.templates.velocityimpl.CustomResourceLoader
- public class CustomResourceLoader
- extends org.apache.velocity.runtime.resource.loader.ResourceLoader
Fields inherited from class org.apache.velocity.runtime.resource.loader.ResourceLoader |
className, isCachingOn, modificationCheckInterval, rsvc |
Method Summary |
void |
clear()
|
long |
getLastModified(org.apache.velocity.runtime.resource.Resource res)
|
java.io.InputStream |
getResourceStream(java.lang.String name)
|
void |
init(org.apache.commons.collections.ExtendedProperties props)
|
boolean |
isSourceModified(org.apache.velocity.runtime.resource.Resource res)
|
static void |
setClassLoader(java.lang.ClassLoader classLoader)
|
static void |
setSearchPath(java.lang.String searchPath)
|
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 |
CustomResourceLoader
public CustomResourceLoader()
setClassLoader
public static void setClassLoader(java.lang.ClassLoader classLoader)
setSearchPath
public static void setSearchPath(java.lang.String searchPath)
init
public void init(org.apache.commons.collections.ExtendedProperties props)
- Specified by:
init
in class org.apache.velocity.runtime.resource.loader.ResourceLoader
getResourceStream
public java.io.InputStream getResourceStream(java.lang.String name)
throws org.apache.velocity.exception.ResourceNotFoundException
- Specified by:
getResourceStream
in class org.apache.velocity.runtime.resource.loader.ResourceLoader
org.apache.velocity.exception.ResourceNotFoundException
isSourceModified
public boolean isSourceModified(org.apache.velocity.runtime.resource.Resource res)
- Specified by:
isSourceModified
in class org.apache.velocity.runtime.resource.loader.ResourceLoader
getLastModified
public long getLastModified(org.apache.velocity.runtime.resource.Resource res)
- Specified by:
getLastModified
in class org.apache.velocity.runtime.resource.loader.ResourceLoader
clear
public void clear()