info.magnolia.module.inplacetemplating
Class JcrRepoTemplateLoader

java.lang.Object
  extended by info.magnolia.module.inplacetemplating.JcrRepoTemplateLoader
All Implemented Interfaces:
freemarker.cache.TemplateLoader

public class JcrRepoTemplateLoader
extends Object
implements freemarker.cache.TemplateLoader

Template loader reading from JCR.

Version:
$Id$

Constructor Summary
JcrRepoTemplateLoader()
           
JcrRepoTemplateLoader(String workspace)
           
 
Method Summary
 void closeTemplateSource(Object templateSource)
           
 Object findTemplateSource(String path)
           
 String getExtension()
           
 long getLastModified(Object templateSource)
           
 Reader getReader(Object templateSource, String encoding)
           
 boolean isLocaleAware()
           
 void setExtension(String extension)
           
 void setLocaleAware(boolean localeAware)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JcrRepoTemplateLoader

public JcrRepoTemplateLoader(String workspace)

JcrRepoTemplateLoader

public JcrRepoTemplateLoader()
Method Detail

getExtension

public String getExtension()

setExtension

public void setExtension(String extension)

setLocaleAware

public void setLocaleAware(boolean localeAware)

isLocaleAware

public boolean isLocaleAware()

closeTemplateSource

public void closeTemplateSource(Object templateSource)
                         throws IOException
Specified by:
closeTemplateSource in interface freemarker.cache.TemplateLoader
Throws:
IOException

findTemplateSource

public Object findTemplateSource(String path)
                          throws IOException
Specified by:
findTemplateSource in interface freemarker.cache.TemplateLoader
Throws:
IOException

getLastModified

public long getLastModified(Object templateSource)
Specified by:
getLastModified in interface freemarker.cache.TemplateLoader

getReader

public Reader getReader(Object templateSource,
                        String encoding)
                 throws IOException
Specified by:
getReader in interface freemarker.cache.TemplateLoader
Throws:
IOException


Copyright © 2012 Magnolia International Ltd.. All Rights Reserved.