Class MCFVelocityResourceLoader


  • public class MCFVelocityResourceLoader
    extends org.apache.velocity.runtime.resource.loader.ResourceLoader
    Our own Velocity resource loader, which uses our class resolution to find Velocity template resources.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.Class classInstance  
      • Fields inherited from class org.apache.velocity.runtime.resource.loader.ResourceLoader

        className, isCachingOn, log, modificationCheckInterval, rsvc
    • Constructor Summary

      Constructors 
      Constructor Description
      MCFVelocityResourceLoader​(java.lang.Class classInstance)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long getLastModified​(org.apache.velocity.runtime.resource.Resource resource)  
      java.io.Reader getResourceReader​(java.lang.String source, java.lang.String encoding)  
      java.io.InputStream getResourceStream​(java.lang.String source)  
      void init​(org.apache.velocity.util.ExtProperties configurations)  
      boolean isSourceModified​(org.apache.velocity.runtime.resource.Resource resource)  
      • 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
    • Field Detail

      • classInstance

        protected java.lang.Class classInstance
    • Constructor Detail

      • MCFVelocityResourceLoader

        public MCFVelocityResourceLoader​(java.lang.Class classInstance)
        Constructor.
    • Method Detail

      • getLastModified

        public long getLastModified​(org.apache.velocity.runtime.resource.Resource resource)
        Specified by:
        getLastModified in class org.apache.velocity.runtime.resource.loader.ResourceLoader
      • getResourceReader

        public java.io.Reader getResourceReader​(java.lang.String source,
                                                java.lang.String encoding)
                                         throws org.apache.velocity.exception.ResourceNotFoundException
        Specified by:
        getResourceReader in class org.apache.velocity.runtime.resource.loader.ResourceLoader
        Throws:
        org.apache.velocity.exception.ResourceNotFoundException
      • getResourceStream

        public java.io.InputStream getResourceStream​(java.lang.String source)
                                              throws org.apache.velocity.exception.ResourceNotFoundException
        Throws:
        org.apache.velocity.exception.ResourceNotFoundException
      • init

        public void init​(org.apache.velocity.util.ExtProperties configurations)
        Specified by:
        init in class org.apache.velocity.runtime.resource.loader.ResourceLoader
      • isSourceModified

        public boolean isSourceModified​(org.apache.velocity.runtime.resource.Resource resource)
        Specified by:
        isSourceModified in class org.apache.velocity.runtime.resource.loader.ResourceLoader