Package org.biojava.directory
Class Registry
- java.lang.Object
-
- org.biojava.directory.Registry
-
public class Registry extends java.lang.ObjectRegistryis a factory which gets implementations of the BioJavaSequenceDBLiteinterface. This is the point of entry for OBDA access.- Version:
- $Revision: 3220 $
- Author:
- Brian Gilman, Thomas Down, Keith James
-
-
Constructor Summary
Constructors Constructor Description Registry(RegistryConfiguration regConfig)Creates a new OBDARegistrywith the specified configuration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SequenceDBLitegetDatabase(java.lang.String dbName)getDatabaseretrieves a database instance known by a nameString.RegistryConfigurationgetRegistryConfiguration()getRegistryConfigurationreturns the configuration of the registry.
-
-
-
Constructor Detail
-
Registry
public Registry(RegistryConfiguration regConfig)
Creates a new OBDARegistrywith the specified configuration.- Parameters:
regConfig- aRegistryConfiguration.
-
-
Method Detail
-
getDatabase
public SequenceDBLite getDatabase(java.lang.String dbName) throws RegistryException, BioException
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
public RegistryConfiguration getRegistryConfiguration()
getRegistryConfigurationreturns the configuration of the registry.- Returns:
- a
RegistryConfiguration.
-
-