Class SiteResourceLoader


  • @Deprecated
    public class SiteResourceLoader
    extends org.apache.velocity.runtime.resource.loader.ResourceLoader
    Deprecated.
    use FileResourceLoader
    Allows you to dynamically add resources that you want to be processed by Velocity. For example if you want to generate a site and pull in some random files to be interpolated by Velocity you can use this resource loader.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.lang.String resource
      Deprecated.
       
      private static java.io.File resourceDir
      Deprecated.
       
      • Fields inherited from class org.apache.velocity.runtime.resource.loader.ResourceLoader

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

      Constructors 
      Constructor Description
      SiteResourceLoader()
      Deprecated.
       
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      long getLastModified​(org.apache.velocity.runtime.resource.Resource resource)
      Deprecated.
       
      java.io.InputStream getResourceStream​(java.lang.String name)
      Deprecated.
       
      void init​(org.apache.commons.collections.ExtendedProperties p)
      Deprecated.
       
      boolean isSourceModified​(org.apache.velocity.runtime.resource.Resource resource)
      Deprecated.
       
      static void setResource​(java.lang.String staticResource)
      Deprecated.
       
      • 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
    • Field Detail

      • resource

        private static java.lang.String resource
        Deprecated.
      • resourceDir

        private static java.io.File resourceDir
        Deprecated.
    • Constructor Detail

      • SiteResourceLoader

        public SiteResourceLoader()
        Deprecated.
    • Method Detail

      • setResource

        public static void setResource​(java.lang.String staticResource)
        Deprecated.
      • init

        public void init​(org.apache.commons.collections.ExtendedProperties p)
        Deprecated.
        Specified by:
        init in class org.apache.velocity.runtime.resource.loader.ResourceLoader
      • getResourceStream

        public java.io.InputStream getResourceStream​(java.lang.String name)
                                              throws org.apache.velocity.exception.ResourceNotFoundException
        Deprecated.
        Specified by:
        getResourceStream in class org.apache.velocity.runtime.resource.loader.ResourceLoader
        Throws:
        org.apache.velocity.exception.ResourceNotFoundException
      • isSourceModified

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

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