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.

@FunctionalInterface public interface ApplicationRepositoryResolver
Created by patricktwohig on 8/1/17.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.eclipse.jgit.lib.Repository
    resolve(Application application, Consumer<org.eclipse.jgit.lib.Repository> onCreate)
    Gets the Repository for the supplied Application.
  • Method Details

    • resolve

      org.eclipse.jgit.lib.Repository resolve(Application application, Consumer<org.eclipse.jgit.lib.Repository> onCreate) throws Exception
      Gets the Repository for the supplied Application. This simply returns the instance of Repository. 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 no Repository exists, this must create the repository.
      Parameters:
      application - the Application
      onCreate - called when the application was created
      Returns:
      the Repository, never null
      Throws:
      Exception