Skip navigation links 
 
oracle.stellent.wcm.client.script.vm
Class TemplateLoader
java.lang.Object
   org.apache.velocity.runtime.resource.loader.ResourceLoader
org.apache.velocity.runtime.resource.loader.ResourceLoader
       oracle.stellent.wcm.client.script.vm.TemplateLoader
oracle.stellent.wcm.client.script.vm.TemplateLoader
- 
public class TemplateLoader
 
- extends org.apache.velocity.runtime.resource.loader.ResourceLoader
 
 
| Fields inherited from class org.apache.velocity.runtime.resource.loader.ResourceLoader | 
| className, isCachingOn, log, modificationCheckInterval, rsvc | 
  
 
  
 
| Method Summary | 
|  ClientApplication | getClientApplication()
 | 
|  long | getLastModified(org.apache.velocity.runtime.resource.Resource resource)Get the last modified time of the InputStream source that was used to create the template.
 | 
|  java.io.InputStream | getResourceStream(java.lang.String source)Get the InputStream that the Runtime will parse to create a template.
 | 
|  void | init(org.apache.commons.collections.ExtendedProperties configuration)Initialize the template loader with a a resources class.
 | 
|  boolean | isPreprocessorEnabled()
 | 
|  boolean | isSourceModified(org.apache.velocity.runtime.resource.Resource resource)Given a template, check to see if the source of InputStream has been modified.
 | 
 
| 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 | 
 
 
TemplateLoader
public TemplateLoader()
getClientApplication
public ClientApplication getClientApplication()
                                       throws ApplicationException
- 
- Throws:
- ApplicationException
 
isPreprocessorEnabled
public boolean isPreprocessorEnabled()
- 
- Returns:
- true if the HTML comment preprocessor is enabled
 
init
public void init(org.apache.commons.collections.ExtendedProperties configuration)
- Initialize the template loader with a a resources class.
- 
- Specified by:
- initin class- org.apache.velocity.runtime.resource.loader.ResourceLoader
 
getResourceStream
public java.io.InputStream getResourceStream(java.lang.String source)
                                      throws org.apache.velocity.exception.ResourceNotFoundException
- Get the InputStream that the Runtime will parse to create a template.
- 
- Specified by:
- getResourceStreamin 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)
- Given a template, check to see if the source of InputStream has been modified.
- 
- Specified by:
- isSourceModifiedin class- org.apache.velocity.runtime.resource.loader.ResourceLoader
 
getLastModified
public long getLastModified(org.apache.velocity.runtime.resource.Resource resource)
- Get the last modified time of the InputStream source that was used to create the template. We need the template here because we have to extract the name of the template in order to locate the InputStream source.
- 
- Specified by:
- getLastModifiedin class- org.apache.velocity.runtime.resource.loader.ResourceLoader
 
Skip navigation links 
 
Copyright © 2010, 2011, Oracle and/or its affiliates. All rights reserved.