org.apache.tiles.freemarker.servlet
Class WebappClassTemplateLoader

java.lang.Object
  extended by org.apache.tiles.freemarker.servlet.WebappClassTemplateLoader

public class WebappClassTemplateLoader
extends java.lang.Object

Delegates loading templates using a WebappTemplateLoader and, if not found, a ClassTemplateLoader. The resources are loaded from the webapp root and from the classpath root.

Since:
2.2.1
Version:
$Rev: 821407 $ $Date: 2009-10-03 22:12:01 +0200 (sab, 03 ott 2009) $

Constructor Summary
WebappClassTemplateLoader(ServletContext servletContext)
          Constructor.
 
Method Summary
 void closeTemplateSource(java.lang.Object templateSource)
          
 java.lang.Object findTemplateSource(java.lang.String name)
          
 long getLastModified(java.lang.Object templateSource)
          
 java.io.Reader getReader(java.lang.Object templateSource, java.lang.String encoding)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebappClassTemplateLoader

public WebappClassTemplateLoader(ServletContext servletContext)
Constructor.

Parameters:
servletContext - The servlet context.
Method Detail

findTemplateSource

public java.lang.Object findTemplateSource(java.lang.String name)
                                    throws java.io.IOException

Throws:
java.io.IOException

closeTemplateSource

public void closeTemplateSource(java.lang.Object templateSource)
                         throws java.io.IOException

Throws:
java.io.IOException

getLastModified

public long getLastModified(java.lang.Object templateSource)


getReader

public java.io.Reader getReader(java.lang.Object templateSource,
                                java.lang.String encoding)
                         throws java.io.IOException

Throws:
java.io.IOException