org.biojava.directory
Class Registry
java.lang.Object
org.biojava.directory.Registry
public class Registry
- extends Object
Registry is a factory which gets implementations of
the BioJava SequenceDBLite interface. This is the
point of entry for OBDA access.
- Version:
- $Revision: 1.11 $
- Author:
- Brian Gilman, Thomas Down, Keith James
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Registry
public Registry(RegistryConfiguration regConfig)
- Creates a new OBDA
Registry with the specified
configuration.
- Parameters:
regConfig - a RegistryConfiguration.
getDatabase
public SequenceDBLite getDatabase(String dbName)
throws RegistryException,
BioException
getDatabase retrieves a database instance known by
a name String.
- Parameters:
dbName - a String 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.