org.thymeleaf.spring3.resourceresolver
Class SpringResourceResourceResolver
Object
org.thymeleaf.spring3.resourceresolver.SpringResourceResourceResolver
- All Implemented Interfaces:
- org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, org.thymeleaf.resourceresolver.IResourceResolver
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)
.
- Since:
- 2.1.0
- Author:
- Daniel Fernández
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NAME
public static final String NAME
- See Also:
- Constant Field Values
SpringResourceResourceResolver
public SpringResourceResourceResolver()
getName
public String getName()
- Specified by:
getName
in interface org.thymeleaf.resourceresolver.IResourceResolver
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
- Specified by:
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
getResourceAsStream
public InputStream getResourceAsStream(org.thymeleaf.TemplateProcessingParameters templateProcessingParameters,
String resourceName)
- Specified by:
getResourceAsStream
in interface org.thymeleaf.resourceresolver.IResourceResolver
Copyright © 2013 The THYMELEAF team. All Rights Reserved.