org.apache.camel.component.velocity
Class CamelVelocityClasspathResourceLoader
java.lang.Object
org.apache.velocity.runtime.resource.loader.ResourceLoader
org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
org.apache.camel.component.velocity.CamelVelocityClasspathResourceLoader
public class CamelVelocityClasspathResourceLoader
- extends org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
Camel specific ClasspathResourceLoader
that loads resources using the
Camel ClassResolver
used by the Velocity.
Fields inherited from class org.apache.velocity.runtime.resource.loader.ResourceLoader |
className, isCachingOn, log, modificationCheckInterval, rsvc |
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, resourceExists, setCachingOn, setModificationCheckInterval |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CamelVelocityClasspathResourceLoader
public CamelVelocityClasspathResourceLoader()
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
- Overrides:
getResourceStream
in class org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
- Throws:
org.apache.velocity.exception.ResourceNotFoundException
Apache Camel