public final class SpringResourceResourceResolver extends Object implements org.thymeleaf.resourceresolver.IResourceResolver, org.springframework.context.ApplicationContextAware
Implementation of IResourceResolver that resolves
resources by delegating on Spring's resource resolution mechanism, implemented by the
ResourceLoader interface.
This resource resolver accesses the Spring resource resolution mechanism by means of
calls to ResourceLoader.getResource(String).
| Constructor and Description |
|---|
SpringResourceResourceResolver() |
| Modifier and Type | Method and Description |
|---|---|
String |
getName() |
InputStream |
getResourceAsStream(org.thymeleaf.TemplateProcessingParameters templateProcessingParameters,
String resourceName) |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
public static final String NAME
public String getName()
getName in interface org.thymeleaf.resourceresolver.IResourceResolverpublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic InputStream getResourceAsStream(org.thymeleaf.TemplateProcessingParameters templateProcessingParameters, String resourceName)
getResourceAsStream in interface org.thymeleaf.resourceresolver.IResourceResolverCopyright © 2017 The THYMELEAF team. All rights reserved.