Class RepositoryFactory


  • public abstract class RepositoryFactory
    extends java.lang.Object
    Factory to create repositories.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      abstract Repository createRepository​(Repository parent, java.lang.String name, java.net.URI source)
      Creates a new Repository with a parent (for delegating module resolutions) and a name.
      abstract Repository createRepository​(java.lang.String name, java.net.URI source)
      Creates a new Repository.
      abstract boolean handleType​(java.lang.String type)
      Returns true if this factory can handle this type of repository
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RepositoryFactory

        public RepositoryFactory()
    • Method Detail

      • handleType

        public abstract boolean handleType​(java.lang.String type)
        Returns true if this factory can handle this type of repository
        Parameters:
        type - repository type
      • createRepository

        public abstract Repository createRepository​(Repository parent,
                                                    java.lang.String name,
                                                    java.net.URI source)
        Creates a new Repository with a parent (for delegating module resolutions) and a name. The URI source identifies the repository location.
        Parameters:
        parent - the parent Repository to delegate module resolution
        name - the repository name
        source - the location of the repository
      • createRepository

        public abstract Repository createRepository​(java.lang.String name,
                                                    java.net.URI source)
        Creates a new Repository. The URI source identifies the repository location.
        Parameters:
        name - the repository name
        source - the location of the repository