org.apache.tiles.request.freemarker.servlet
Class WebappClassTemplateLoader

Package class diagram package WebappClassTemplateLoader
java.lang.Object
  extended by org.apache.tiles.request.freemarker.servlet.WebappClassTemplateLoader

public class WebappClassTemplateLoader
extends 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.

Version:
$Rev: 1306435 $ $Date: 2012-03-28 11:39:11 -0400 (Wed, 28 Mar 2012) $

Constructor Summary
WebappClassTemplateLoader(ServletContext servletContext)
          Constructor.
 
Method Summary
 void closeTemplateSource(Object templateSource)
          
 Object findTemplateSource(String name)
          
 long getLastModified(Object templateSource)
          
 Reader getReader(Object templateSource, 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 Object findTemplateSource(String name)
                          throws IOException

Throws:
IOException

closeTemplateSource

public void closeTemplateSource(Object templateSource)
                         throws IOException

Throws:
IOException

getLastModified

public long getLastModified(Object templateSource)


getReader

public Reader getReader(Object templateSource,
                        String encoding)
                 throws IOException

Throws:
IOException


Copyright © 2001-2012 Apache Software Foundation. All Rights Reserved.