|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object org.thymeleaf.resourceresolver.ClassLoaderResourceResolver
public final class ClassLoaderResourceResolver
Implementation of IResourceResolver
that resolves
resources as classloader resources:
Thread.currentThread().getContextClassLoader().getResourceAsStream(resourceName)
Field Summary | |
---|---|
static String |
NAME
|
Constructor Summary | |
---|---|
ClassLoaderResourceResolver()
|
Method Summary | |
---|---|
String |
getName()
The name of the resource resolver. |
java.io.InputStream |
getResourceAsStream(TemplateProcessingParameters templateProcessingParameters,
String resourceName)
Resolve the resource, this is, open an input stream for it. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String NAME
Constructor Detail |
---|
public ClassLoaderResourceResolver()
Method Detail |
---|
public String getName()
IResourceResolver
The name of the resource resolver.
getName
in interface IResourceResolver
public java.io.InputStream getResourceAsStream(TemplateProcessingParameters templateProcessingParameters, String resourceName)
IResourceResolver
Resolve the resource, this is, open an input stream for it.
If the resource cannot be resolved, this method should return null.
getResourceAsStream
in interface IResourceResolver
templateProcessingParameters
- the TemplateProcessingParameters
object being used for template processingresourceName
- the resource name to be resolved/read
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |