Class 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 Detail

      • CamelVelocityClasspathResourceLoader

        public CamelVelocityClasspathResourceLoader()
    • Method Detail

      • 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