Package org.biojava.directory
Class Registry
- java.lang.Object
-
- org.biojava.directory.Registry
-
-
Constructor Summary
Constructors Constructor Description Registry(RegistryConfiguration regConfig)
Creates a new OBDARegistry
with the specified configuration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SequenceDBLite
getDatabase(String dbName)
getDatabase
retrieves a database instance known by a nameString
.RegistryConfiguration
getRegistryConfiguration()
getRegistryConfiguration
returns the configuration of the registry.
-
-
-
Constructor Detail
-
Registry
public Registry(RegistryConfiguration regConfig)
Creates a new OBDARegistry
with the specified configuration.- Parameters:
regConfig
- aRegistryConfiguration
.
-
-
Method Detail
-
getDatabase
public SequenceDBLite getDatabase(String dbName) throws RegistryException, BioException
getDatabase
retrieves a database instance known by a nameString
.- Parameters:
dbName
- aString
database name.- Returns:
- a
SequenceDBLite
. - Throws:
RegistryException
- if the registry does not contain a configuration for the specified name.BioException
- if the provider fails.
-
getRegistryConfiguration
public RegistryConfiguration getRegistryConfiguration()
getRegistryConfiguration
returns the configuration of the registry.- Returns:
- a
RegistryConfiguration
.
-
-