fr.opensagres.xdocreport.template.velocity.cache
Class XDocReportEntryResourceLoader

java.lang.Object
  extended by org.apache.velocity.runtime.resource.loader.ResourceLoader
      extended by fr.opensagres.xdocreport.template.velocity.cache.XDocReportEntryResourceLoader
All Implemented Interfaces:
VelocityConstants

public class XDocReportEntryResourceLoader
extends org.apache.velocity.runtime.resource.loader.ResourceLoader
implements VelocityConstants

Velocity resource loader ResourceLoader implementation used to cache entry name of XDocArchive which must be merged with Java model with velocity template engine.


Field Summary
 
Fields inherited from class org.apache.velocity.runtime.resource.loader.ResourceLoader
className, isCachingOn, log, modificationCheckInterval, rsvc
 
Fields inherited from interface fr.opensagres.xdocreport.template.velocity.VelocityConstants
DESCRIPTION_DISCOVERY, ID_DISCOVERY, VELOCITY_TEMPLATE_ENGINE_KEY
 
Constructor Summary
XDocReportEntryResourceLoader()
           
 
Method Summary
 void commonInit(org.apache.velocity.runtime.RuntimeServices rs, org.apache.commons.collections.ExtendedProperties configuration)
           
 long getLastModified(org.apache.velocity.runtime.resource.Resource resource)
           
 InputStream getResourceStream(String source)
           
 void init(org.apache.commons.collections.ExtendedProperties configuration)
           
 boolean isSourceModified(org.apache.velocity.runtime.resource.Resource resource)
           
 boolean resourceExists(String resourceName)
          Overrides superclass for better performance.
 
Methods inherited from class org.apache.velocity.runtime.resource.loader.ResourceLoader
getClassName, getModificationCheckInterval, isCachingOn, setCachingOn, setModificationCheckInterval
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XDocReportEntryResourceLoader

public XDocReportEntryResourceLoader()
Method Detail

commonInit

public void commonInit(org.apache.velocity.runtime.RuntimeServices rs,
                       org.apache.commons.collections.ExtendedProperties configuration)
Overrides:
commonInit in class org.apache.velocity.runtime.resource.loader.ResourceLoader

init

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

getResourceStream

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

resourceExists

public boolean resourceExists(String resourceName)
Overrides superclass for better performance.

Overrides:
resourceExists 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
See Also:
ResourceLoader.isSourceModified(org.apache.velocity.runtime.resource.Resource)

getLastModified

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


Copyright © 2013. All rights reserved.