Package org.biojava.directory
Class Registry
java.lang.Object
org.biojava.directory.Registry
Registry
is a factory which gets implementations of
the BioJava SequenceDBLite
interface. This is the
point of entry for OBDA access.
- Version:
- $Revision$
- Author:
- Brian Gilman, Thomas Down, Keith James
-
Constructor Summary
ConstructorsConstructorDescriptionRegistry
(RegistryConfiguration regConfig) Creates a new OBDARegistry
with the specified configuration. -
Method Summary
Modifier and TypeMethodDescriptiongetDatabase
(String dbName) getDatabase
retrieves a database instance known by a nameString
.getRegistryConfiguration
returns the configuration of the registry.
-
Constructor Details
-
Registry
Creates a new OBDARegistry
with the specified configuration.- Parameters:
regConfig
- aRegistryConfiguration
.
-
-
Method Details
-
getDatabase
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
getRegistryConfiguration
returns the configuration of the registry.- Returns:
- a
RegistryConfiguration
.
-