This project has retired. For details please refer to its
Attic page .
VelocityGenerator.TemplateLoader (Cocoon API 2.1.12-dev [March 20 2012])
org.apache.cocoon.generation
Class VelocityGenerator.TemplateLoader
java.lang.Object
org.apache.velocity.runtime.resource.loader.ResourceLoader
org.apache.cocoon.generation.VelocityGenerator.TemplateLoader
Enclosing class: VelocityGenerator
public static class VelocityGenerator.TemplateLoader extends org.apache.velocity.runtime.resource.loader.ResourceLoader
Velocity ResourceLoader
implementation to load template resources using Cocoon's
SourceResolver
. This class is created by the Velocity
framework via the ResourceLoaderFactory.
See Also: ResourceLoader
Fields inherited from class org.apache.velocity.runtime.resource.loader.ResourceLoader
className, isCachingOn, modificationCheckInterval, rsvc
Methods inherited from class org.apache.velocity.runtime.resource.loader.ResourceLoader
commonInit, getClassName, getModificationCheckInterval, isCachingOn, setCachingOn, setModificationCheckInterval
Methods inherited from class java.lang.Object
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
VelocityGenerator.TemplateLoader
public VelocityGenerator.TemplateLoader ()
init
public void init (org.apache.commons.collections.ExtendedProperties config)
Initialize this resource loader. The 'context' property is
required and must be of type Context
. The context
is used to pass the Cocoon SourceResolver for the current
pipeline.
Specified by: init
in class org.apache.velocity.runtime.resource.loader.ResourceLoader
Parameters: config
- the properties to configure this resource.
Throws:
IllegalArgumentException
- thrown if the required
'context' property is not set.
ClassCastException
- if the 'context' property is not
of type Context
.See Also: ResourceLoader.init(ExtendedProperties)
getResourceStream
public InputStream getResourceStream (String systemId)
throws org.apache.velocity.exception.ResourceNotFoundException
Specified by: getResourceStream
in class org.apache.velocity.runtime.resource.loader.ResourceLoader
Parameters: systemId
- the path to the resource
Throws:
org.apache.velocity.exception.ResourceNotFoundException
See Also: ResourceLoader.getResourceStream(String)
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(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(Resource)
Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.