Package org.cyclopsgroup.gitcon
Class FileSystemResourceRepository
java.lang.Object
org.cyclopsgroup.gitcon.FileSystemResourceRepository
- All Implemented Interfaces:
LocalResourceRepository,ResourceRepository
A simple implementation that points to a local directory to get resources
-
Constructor Summary
ConstructorsConstructorDescriptionFileSystemResourceRepository(File rootDirectory) FileSystemResourceRepository(String rootDirectory) -
Method Summary
Modifier and TypeMethodDescriptionGet root directory of local repositorygetResource(String filePath) Get file object for given relative file path in repository
-
Constructor Details
-
FileSystemResourceRepository
-
FileSystemResourceRepository
-
-
Method Details
-
getRepositoryDirectory
Description copied from interface:LocalResourceRepositoryGet root directory of local repository- Specified by:
getRepositoryDirectoryin interfaceLocalResourceRepository- Returns:
- Root directory of local repository
-
getResource
Description copied from interface:ResourceRepositoryGet file object for given relative file path in repository- Specified by:
getResourcein interfaceResourceRepository- Parameters:
filePath- File path relative to the root of repository- Returns:
- A file object. File may not exist if file path points to no where, in which case this call does not fail.
-