Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.ensembl.driver
Class ServerDriverFactory

    java.lang.Object
      org.ensembl.driver.ServerDriverFactory

public class ServerDriverFactory
extends java.lang.Object

Factory for producing, or retrieving from a cached, ServerDrivers. Sharing ServerDrivers amongst EnsemblDrivers that wrap databases on the same server can significantly reduce the number of connections and made to the server.

Author:
  Craig Melsopp
See Also:
  `ServerDriver`

Constructor Summary
`ServerDriverFactory()`

Method Summary
`void` | `clear()`
`ServerDriver` | `get(java.util.Properties config)` Returns a ServerDriver corresponding to the _config_.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### ServerDriverFactory

    public ServerDriverFactory()

Method Detail

### clear

    public void clear()

### get

    public ServerDriver get(java.util.Properties config)

  Returns a ServerDriver corresponding to the _config_. If an appropriatte ServerDriver is cached then that is returned. Otherwise a new instance is created, cached, and returned.

  Parameters:
    `config` - database connection parameters for a ServerDriver. Should contain at least "connection_url", or "host" and "user", otherwise no ServerDriver will be returned.
  Returns:
    ServerDriver created from database specific parameters in _config_, or null if prerequisite parameters are missing.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD