|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD |
public interface ResourceLocator
Used to locate resources at development or production time.
Method Summary | |
---|---|
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 searchLocations)
Multiple locations to search. |
Method Detail |
---|
public org.springframework.core.io.Resource findResourceForClassName(java.lang.String className)
className
- The class name
public org.springframework.core.io.Resource findResourceForURI(java.lang.String uri)
uri
- The URI
public void setSearchLocation(java.lang.String searchLocation)
searchLocation
- The search location
public void setSearchLocations(java.util.Collection searchLocations)
searchLocations
- The locations to search
Groovy Documentation