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.-
Field Summary
Fields inherited from class org.apache.velocity.runtime.resource.loader.ResourceLoader
className, isCachingOn, log, modificationCheckInterval, rsvc
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetResourceReader
(String name, String encoding) void
init
(org.apache.velocity.util.ExtProperties 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
buildReader, commonInit, getClassName, getModificationCheckInterval, isCachingOn, resourceExists, setCachingOn, setModificationCheckInterval
-
Constructor Details
-
CamelVelocityClasspathResourceLoader
public CamelVelocityClasspathResourceLoader()
-
-
Method Details
-
init
public void init(org.apache.velocity.util.ExtProperties configuration) - Overrides:
init
in classorg.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
-
getResourceReader
public Reader getResourceReader(String name, String encoding) throws org.apache.velocity.exception.ResourceNotFoundException - Overrides:
getResourceReader
in classorg.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
- Throws:
org.apache.velocity.exception.ResourceNotFoundException
-