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.IResourceResolver
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
public InputStream getResourceAsStream(org.thymeleaf.TemplateProcessingParameters templateProcessingParameters, String resourceName)
getResourceAsStream
in interface org.thymeleaf.resourceresolver.IResourceResolver
Copyright © 2016 The THYMELEAF team. All rights reserved.