info.magnolia.freemarker.loaders
Class LazyFileTemplateLoader

java.lang.Object
  extended by info.magnolia.freemarker.loaders.AbstractDelegatingTemplateLoader
      extended by info.magnolia.freemarker.loaders.LazyFileTemplateLoader
All Implemented Interfaces:
freemarker.cache.TemplateLoader

public class LazyFileTemplateLoader
extends AbstractDelegatingTemplateLoader

A TemplateLoader wrapping freemarker's FileTemplateLoader, initializing it lazily, thus allowing setting its parameters with content2bean.

Version:
$Id: $
Author:
gjoseph

Constructor Summary
LazyFileTemplateLoader()
           
 
Method Summary
 String getBasePath()
           
 boolean isAllowLinking()
           
protected  freemarker.cache.TemplateLoader newDelegate()
          Implementations should return null if it is too early to instantiate the delegate.
 void setAllowLinking(boolean allowLinking)
           
 void setBasePath(String basePath)
           
 
Methods inherited from class info.magnolia.freemarker.loaders.AbstractDelegatingTemplateLoader
closeTemplateSource, findTemplateSource, getDelegate, getLastModified, getReader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LazyFileTemplateLoader

public LazyFileTemplateLoader()
Method Detail

getBasePath

public String getBasePath()

setBasePath

public void setBasePath(String basePath)

isAllowLinking

public boolean isAllowLinking()

setAllowLinking

public void setAllowLinking(boolean allowLinking)

newDelegate

protected freemarker.cache.TemplateLoader newDelegate()
Description copied from class: AbstractDelegatingTemplateLoader
Implementations should return null if it is too early to instantiate the delegate.

Specified by:
newDelegate in class AbstractDelegatingTemplateLoader


Copyright © 2003-2013 Magnolia International Ltd.. All Rights Reserved.