public class StaticResourceLocator extends java.lang.Object implements ResourceLocator
A static resource locator that uses an internal map to locate resources. Used largely for testing.
Modifiers | Name | Description |
---|---|---|
private java.util.Map<java.lang.String, org.springframework.core.io.Resource> |
classToResourceMap |
Type Params | Return Type | Name and description |
---|---|---|
|
public void |
addClassResource(java.lang.String className, org.springframework.core.io.Resource res) |
|
public org.springframework.core.io.Resource |
findResourceForClassName(java.lang.String className) |
|
public org.springframework.core.io.Resource |
findResourceForURI(java.lang.String uri) |
|
public void |
setSearchLocation(java.lang.String searchLocation) |
|
public void |
setSearchLocations(java.util.Collection<java.lang.String> searchLocations) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |