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.Repository
resolve
(Application application, Consumer<org.eclipse.jgit.lib.Repository> onCreate) Gets theRepository
for the suppliedApplication
.
-
Method Details
-
resolve
org.eclipse.jgit.lib.Repository resolve(Application application, Consumer<org.eclipse.jgit.lib.Repository> onCreate) throws Exception Gets theRepository
for 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 noRepository
exists, this must create the repository.- Parameters:
application
- theApplication
onCreate
- called when the application was created- Returns:
- the
Repository
, never null - Throws:
Exception
-