public class SpringTemplateLoader extends URLTemplateLoader
ResourceLoader.getResource(String)DEFAULT_PREFIX, DEFAULT_SUFFIX| Constructor and Description |
|---|
SpringTemplateLoader(org.springframework.context.ApplicationContext applicationContext)
Creates a new
SpringTemplateLoader. |
SpringTemplateLoader(org.springframework.core.io.ResourceLoader loader)
Creates a new
SpringTemplateLoader. |
| Modifier and Type | Method and Description |
|---|---|
protected URL |
getResource(String location) |
String |
resolve(String location) |
sourceAtgetCharset, getPrefix, getSuffix, normalize, setCharset, setPrefix, setSuffixpublic SpringTemplateLoader(org.springframework.core.io.ResourceLoader loader)
SpringTemplateLoader.loader - The resource loader. Required.public SpringTemplateLoader(org.springframework.context.ApplicationContext applicationContext)
SpringTemplateLoader.applicationContext - The application's context. Required.protected URL getResource(String location) throws IOException
getResource in class URLTemplateLoaderIOExceptionpublic String resolve(String location)
resolve in interface TemplateLoaderresolve in class AbstractTemplateLoaderCopyright © 2018. All rights reserved.