Class DatasetRepositoryFactory
- java.lang.Object
-
- org.eclipse.rdf4j.repository.dataset.config.DatasetRepositoryFactory
-
- All Implemented Interfaces:
RepositoryFactory
public class DatasetRepositoryFactory extends Object implements RepositoryFactory
ARepositoryFactory
that createsDatasetRepository
s based on RDF configuration data.- Author:
- Arjohn Kampman
-
-
Field Summary
Fields Modifier and Type Field Description static String
REPOSITORY_TYPE
The type of repositories that are created by this factory.
-
Constructor Summary
Constructors Constructor Description DatasetRepositoryFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RepositoryImplConfig
getConfig()
Repository
getRepository(RepositoryImplConfig config)
Returns a Repository instance that has been initialized using the supplied configuration data.String
getRepositoryType()
Returns the repository's type: openrdf:DatasetRepository.
-
-
-
Field Detail
-
REPOSITORY_TYPE
public static final String REPOSITORY_TYPE
The type of repositories that are created by this factory.
-
-
Method Detail
-
getRepositoryType
public String getRepositoryType()
Returns the repository's type: openrdf:DatasetRepository.- Specified by:
getRepositoryType
in interfaceRepositoryFactory
-
getConfig
public RepositoryImplConfig getConfig()
- Specified by:
getConfig
in interfaceRepositoryFactory
-
getRepository
public Repository getRepository(RepositoryImplConfig config) throws RepositoryConfigException
Description copied from interface:RepositoryFactory
Returns a Repository instance that has been initialized using the supplied configuration data.- Specified by:
getRepository
in interfaceRepositoryFactory
- 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.
-
-