org.eclipse.rdf4j.repository.config

## Interface RepositoryFactory

- All Known Implementing Classes:
    ContextAwareFactory, DatasetRepositoryFactory, FedXRepositoryFactory, HTTPRepositoryFactory, ProxyRepositoryFactory, SailRepositoryFactory, SPARQLRepositoryFactory, SystemRepositoryFactory

      public interface RepositoryFactory

  A RepositoryFactory takes care of creating and initializing a specific type of `Repository`s based on RDF configuration data.
  Author:
    Arjohn Kampman

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `RepositoryImplConfig` | `getConfig()`
    `Repository` | `getRepository(RepositoryImplConfig config)` Returns a Repository instance that has been initialized using the supplied configuration data.
    `String` | `getRepositoryType()` Returns the type of the repositories that this factory creates.

- - ### Method Detail

    - #### getRepositoryType

          String getRepositoryType()

      Returns the type of the repositories that this factory creates. Repository types are used for identification and should uniquely identify specific implementations of the Repository API. This type can be equal to the fully qualified class name of the repository, but this is not required.

    - #### getConfig

          RepositoryImplConfig getConfig()

    - #### getRepository

          Repository getRepository(RepositoryImplConfig config)
                            throws RepositoryConfigException

      Returns a Repository instance that has been initialized using the supplied configuration data.
      Parameters:
        `config` - TODO
      Returns:
        The created (but un-initialized) repository.
      Throws:
        `RepositoryConfigException` - If no repository could be created due to invalid or incomplete configuration data.

Copyright © 2015-2021 Eclipse Foundation. All Rights Reserved.