Class RepositoryFactory

java.lang.Object
com.sun.enterprise.module.RepositoryFactory

public abstract class RepositoryFactory extends Object
Factory to create repositories.
  • Constructor Details

    • RepositoryFactory

      public RepositoryFactory()
  • Method Details

    • handleType

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

      public abstract Repository createRepository(Repository parent, String name, 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(String name, URI source)
      Creates a new Repository. The URI source identifies the repository location.
      Parameters:
      name - the repository name
      source - the location of the repository