public class WebappClassTemplateLoader
extends java.lang.Object
WebappTemplateLoader
and, if not
found, a ClassTemplateLoader
. The resources are loaded from the
webapp root and from the classpath root.Constructor and Description |
---|
WebappClassTemplateLoader(ServletContext servletContext)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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) |
public WebappClassTemplateLoader(ServletContext servletContext)
servletContext
- The servlet context.public java.lang.Object findTemplateSource(java.lang.String name) throws java.io.IOException
java.io.IOException
public void closeTemplateSource(java.lang.Object templateSource) throws java.io.IOException
java.io.IOException
public long getLastModified(java.lang.Object templateSource)
public java.io.Reader getReader(java.lang.Object templateSource, java.lang.String encoding) throws java.io.IOException
java.io.IOException