Interface RepositoryFactory


public interface RepositoryFactory
A interface responsible to create Repository instances.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a set of URI scheme that the RepositoryFactory supports.
    newInstance(String name, URI uri)
    Creates a new instance of a repository with a name and url.
  • Method Details

    • newInstance

      Repository newInstance(String name, URI uri)
      Creates a new instance of a repository with a name and url.
      Parameters:
      name - the repository name
      uri - the repository location
      Returns:
      the new repository
    • getSupportedScheme

      Set<String> getSupportedScheme()
      Returns a set of URI scheme that the RepositoryFactory supports.
      Returns:
      a set of URI scheme that the RepositoryFactory supports