info.magnolia.freemarker.loaders
Class LazyWebappTemplateLoader

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

public class LazyWebappTemplateLoader
extends AbstractDelegatingTemplateLoader

Wrapper for Freemarker WebappTemplateLoader to allow configuration of the loader via content2bean with lazy initialization at runtime (as soon as a ServletContext is available).

Author:
had

Constructor Summary
LazyWebappTemplateLoader()
           
 
Method Summary
protected  freemarker.cache.TemplateLoader newDelegate()
          Implementations should return null if it is too early to instantiate the delegate.
 
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

LazyWebappTemplateLoader

public LazyWebappTemplateLoader()
Method Detail

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.