|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.xbean.server.repository.FileSystemRepository
public class FileSystemRepository
FileSystemRepository maps resource ids to a directory on the local file system.
Constructor Summary | |
---|---|
FileSystemRepository()
Creates a new repository without a specified root directory. |
|
FileSystemRepository(File root)
Creates a new repository using the specified root directory. |
Method Summary | |
---|---|
URL |
getResource(String location)
Gets location of the resource realitive to the root directory. |
File |
getRoot()
Gets the root directory from which resources are resolved. |
void |
setRoot(File root)
Sets the root directory of this repository. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileSystemRepository()
public FileSystemRepository(File root)
root
- the root directory from which resources are resolvedMethod Detail |
---|
public File getRoot()
public void setRoot(File root)
root
- the new root directory from which resources are to be resolvedpublic URL getResource(String location)
getResource
in interface Repository
location
- the location of the resource
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |