public class DirectoryResourceLocator extends Object implements ResourceLocator
| Constructor and Description |
|---|
DirectoryResourceLocator(String paths)
This is the constructor for the directory resource
locator, initialised with a ':' separated list
of root directories.
|
| Modifier and Type | Method and Description |
|---|---|
Resource |
getResource(String relativePath)
This method obtains the resource associated with the
supplied path.
|
String |
getResourceRoot(Resource resource)
This method returns the root location containing the supplied
resource.
|
public DirectoryResourceLocator(String paths)
paths - The ':' separated list of directory pathspublic String getResourceRoot(Resource resource)
public Resource getResource(String relativePath)
getResource in interface ResourceLocatorrelativePath - The resource pathCopyright © 2014. All Rights Reserved.