Skip navigation links

Oracle® Fusion Middleware Site Studio for External Applications Java API Reference
11g Release 1 (11.1.1)

E17273-01


oracle.stellent.wcm.client.script.vm
Class TemplateLoader

java.lang.Object
  extended by org.apache.velocity.runtime.resource.loader.ResourceLoader
      extended by oracle.stellent.wcm.client.script.vm.TemplateLoader


public class TemplateLoader
extends org.apache.velocity.runtime.resource.loader.ResourceLoader

Field Summary

 

Fields inherited from class org.apache.velocity.runtime.resource.loader.ResourceLoader
className, isCachingOn, log, modificationCheckInterval, rsvc

 

Constructor Summary
TemplateLoader()
           

 

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

 

Constructor Detail

TemplateLoader

public TemplateLoader()

Method Detail

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:
init in 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:
getResourceStream in 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:
isSourceModified in 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:
getLastModified in class org.apache.velocity.runtime.resource.loader.ResourceLoader

Skip navigation links

Oracle® Fusion Middleware Site Studio for External Applications Java API Reference
11g Release 1 (11.1.1)

E17273-01


Copyright © 2010, Oracle and/or its affiliates. All rights reserved.