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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    getResourceReader(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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CamelVelocityClasspathResourceLoader

      public CamelVelocityClasspathResourceLoader()
  • Method Details

    • init

      public void init(org.apache.velocity.util.ExtProperties configuration)
      Overrides:
      init in class org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
    • getResourceReader

      public Reader getResourceReader(String name, String encoding) throws org.apache.velocity.exception.ResourceNotFoundException
      Overrides:
      getResourceReader in class org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
      Throws:
      org.apache.velocity.exception.ResourceNotFoundException