info.magnolia.freemarker.loaders
Class LazyWebappTemplateLoader
java.lang.Object
info.magnolia.freemarker.loaders.AbstractDelegatingTemplateLoader
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
Method Summary |
protected freemarker.cache.TemplateLoader |
newDelegate()
Implementations should return null if it is too early to instantiate the delegate. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LazyWebappTemplateLoader
public LazyWebappTemplateLoader()
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–2014 Magnolia International Ltd.. All rights reserved.