com.atlassian.confluence.util.velocity
Class ResourceLoaderWrapper

java.lang.Object
  extended by org.apache.velocity.runtime.resource.loader.ResourceLoader
      extended by com.atlassian.confluence.util.velocity.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.


Field Summary
 
Fields inherited from class org.apache.velocity.runtime.resource.loader.ResourceLoader
className, isCachingOn, log, modificationCheckInterval, rsvc
 
Constructor Summary
ResourceLoaderWrapper(org.apache.velocity.runtime.resource.loader.ResourceLoader resourceLoader)
           
 
Method Summary
 void commonInit(org.apache.velocity.runtime.RuntimeServices runtimeServices, org.apache.commons.collections.ExtendedProperties extendedProperties)
           
 org.apache.velocity.runtime.resource.loader.ResourceLoader getBaseResourceLoader()
           
 long getLastModified(org.apache.velocity.runtime.resource.Resource resource)
           
 long getModificationCheckInterval()
           
 InputStream getResourceStream(String resourceName)
           
 void init(org.apache.commons.collections.ExtendedProperties extendedProperties)
           
 boolean isCachingOn()
           
 boolean isSourceModified(org.apache.velocity.runtime.resource.Resource resource)
           
 void setCachingOn(boolean cachingOn)
           
 void setModificationCheckInterval(long ms)
           
 String toString()
           
 
Methods inherited from class org.apache.velocity.runtime.resource.loader.ResourceLoader
getClassName, resourceExists
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2003-2013 Atlassian. All Rights Reserved.