public class StaticResourceLocator extends java.lang.Object implements ResourceLocator
| Constructor and Description |
|---|
StaticResourceLocator() |
| Modifier and Type | Method and Description |
|---|---|
void |
addClassResource(java.lang.String className,
org.springframework.core.io.Resource res) |
org.springframework.core.io.Resource |
findResourceForClassName(java.lang.String className)
Finds the .groovy file or .java file for a given class from a Grails project.
|
org.springframework.core.io.Resource |
findResourceForURI(java.lang.String uri)
Finds a resource for the given URI
|
void |
setSearchLocation(java.lang.String searchLocation)
The basic location from which to conduct the search.
|
void |
setSearchLocations(java.util.Collection<java.lang.String> searchLocations)
Multiple locations to search.
|
public void setSearchLocation(java.lang.String searchLocation)
ResourceLocatorsetSearchLocation in interface ResourceLocatorsearchLocation - The search locationpublic void setSearchLocations(java.util.Collection<java.lang.String> searchLocations)
ResourceLocatorsetSearchLocations in interface ResourceLocatorsearchLocations - The locations to searchpublic org.springframework.core.io.Resource findResourceForURI(java.lang.String uri)
ResourceLocatorfindResourceForURI in interface ResourceLocatoruri - The URIpublic org.springframework.core.io.Resource findResourceForClassName(java.lang.String className)
ResourceLocatorfindResourceForClassName in interface ResourceLocatorclassName - The class namepublic void addClassResource(java.lang.String className,
org.springframework.core.io.Resource res)