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 OBDARegistrywith the specified configuration. -
Method Summary
Modifier and TypeMethodDescriptiongetDatabase(String dbName) getDatabaseretrieves a database instance known by a nameString.getRegistryConfigurationreturns the configuration of the registry.
-
Constructor Details
-
Registry
Creates a new OBDARegistrywith the specified configuration.- Parameters:
regConfig- aRegistryConfiguration.
-
-
Method Details
-
getDatabase
getDatabaseretrieves a database instance known by a nameString.- Parameters:
dbName- aStringdatabase name.- Returns:
- a
SequenceDBLite. - Throws:
RegistryException- if the registry does not contain a configuration for the specified name.BioException- if the provider fails.
-
getRegistryConfiguration
getRegistryConfigurationreturns the configuration of the registry.- Returns:
- a
RegistryConfiguration.
-