Class Registry


  • public class Registry
    extends java.lang.Object

    Registry is a factory which gets implementations of the BioJava SequenceDBLite interface. This is the point of entry for OBDA access.

    Version:
    $Revision: 3220 $
    Author:
    Brian Gilman, Thomas Down, Keith James
    • Constructor Detail

      • Registry

        public Registry​(RegistryConfiguration regConfig)
        Creates a new OBDA Registry with the specified configuration.
        Parameters:
        regConfig - a RegistryConfiguration.
    • Method Detail

      • getDatabase

        public SequenceDBLite getDatabase​(java.lang.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.