Class RepositoryRegistry
java.lang.Object
org.eclipse.rdf4j.common.lang.service.ServiceRegistry<String, RepositoryFactory>
org.eclipse.rdf4j.repository.config.RepositoryRegistry
A registry that keeps track of the available
RepositoryFactorys.- Author:
- Arjohn Kampman
-
Field Summary
Fields inherited from class ServiceRegistry
logger, servicesModifier and TypeFieldDescriptionprotected final org.slf4j.Loggerprotected Map<String, RepositoryFactory> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RepositoryRegistryGets the default RepositoryRegistry.protected StringgetKey(RepositoryFactory factory) Gets the key for the specified service.Methods inherited from class ServiceRegistry
add, get, getAll, getKeys, has, removeModifier and TypeMethodDescriptionadd(RepositoryFactory service) Adds a service to the registry.Gets the service for the specified key, if any.getAll()Gets all registered services.getKeys()Gets the set of registered keys.booleanChecks whether a service for the specified key is available.voidremove(RepositoryFactory service) Removes a service from the registry.
-
Constructor Details
-
RepositoryRegistry
public RepositoryRegistry()
-
-
Method Details
-
getInstance
Gets the default RepositoryRegistry.- Returns:
- The default registry.
-
getKey
Description copied from class:ServiceRegistryGets the key for the specified service.- Specified by:
getKeyin classServiceRegistry<String, RepositoryFactory>- Parameters:
factory- The service to get the key for.- Returns:
- The key for the specified service.
-