Class ResourceLoaderWrapper


  • public abstract class ResourceLoaderWrapper
    extends org.apache.velocity.runtime.resource.loader.ResourceLoader
    Wrapper class for writing resource loader filters, delegating the ResourceLoader methods to the wrapped loader.

    This class will also update the internal state of the delegating resource loader to reflect any mutation of the wrapped loader.

    • Constructor Detail

      • ResourceLoaderWrapper

        public ResourceLoaderWrapper​(org.apache.velocity.runtime.resource.loader.ResourceLoader resourceLoader)
    • Method Detail

      • init

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

        public long getLastModified​(org.apache.velocity.runtime.resource.Resource resource)
        Specified by:
        getLastModified 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
      • isCachingOn

        public boolean isCachingOn()
        Overrides:
        isCachingOn in class org.apache.velocity.runtime.resource.loader.ResourceLoader
      • setCachingOn

        public void setCachingOn​(boolean cachingOn)
        Overrides:
        setCachingOn in class org.apache.velocity.runtime.resource.loader.ResourceLoader
      • setModificationCheckInterval

        public void setModificationCheckInterval​(long ms)
        Overrides:
        setModificationCheckInterval in class org.apache.velocity.runtime.resource.loader.ResourceLoader
      • getModificationCheckInterval

        public long getModificationCheckInterval()
        Overrides:
        getModificationCheckInterval in class org.apache.velocity.runtime.resource.loader.ResourceLoader
      • commonInit

        public void commonInit​(org.apache.velocity.runtime.RuntimeServices runtimeServices,
                               org.apache.commons.collections.ExtendedProperties extendedProperties)
        Overrides:
        commonInit in class org.apache.velocity.runtime.resource.loader.ResourceLoader
      • getResourceStream

        public InputStream getResourceStream​(String resourceName)
                                      throws org.apache.velocity.exception.ResourceNotFoundException
        Specified by:
        getResourceStream in class org.apache.velocity.runtime.resource.loader.ResourceLoader
        Throws:
        org.apache.velocity.exception.ResourceNotFoundException
      • getBaseResourceLoader

        public org.apache.velocity.runtime.resource.loader.ResourceLoader getBaseResourceLoader()