Package dev.getelements.elements.git
Interface ApplicationRepositoryResolver
- All Known Implementing Classes:
FileSystemApplicationRepositoryResolver
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Created by patricktwohig on 8/1/17.
-
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.jgit.lib.Repositoryresolve(Application application, Consumer<org.eclipse.jgit.lib.Repository> onCreate) Gets theRepositoryfor the suppliedApplication.
-
Method Details
-
resolve
org.eclipse.jgit.lib.Repository resolve(Application application, Consumer<org.eclipse.jgit.lib.Repository> onCreate) throws Exception Gets theRepositoryfor the suppliedApplication. This simply returns the instance ofRepository. It is safe to assume this method will be called after the necessary security checks, therefore any security checking in this method would be redundant. If noRepositoryexists, this must create the repository.- Parameters:
application- theApplicationonCreate- called when the application was created- Returns:
- the
Repository, never null - Throws:
Exception
-