org.apache.camel.component.velocity
Class CamelVelocityClasspathResourceLoader

java.lang.Object
  extended by org.apache.velocity.runtime.resource.loader.ResourceLoader
      extended by org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
          extended by 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
CamelVelocityClasspathResourceLoader()
           
 
Method Summary
 InputStream getResourceStream(String name)
           
 void init(org.apache.commons.collections.ExtendedProperties 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
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
 

Constructor Detail

CamelVelocityClasspathResourceLoader

public CamelVelocityClasspathResourceLoader()
Method Detail

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