de.smartics.properties.impl.config.ds
Class DataSourceProxyManager

Package class diagram package DataSourceProxyManager
java.lang.Object
  extended by de.smartics.properties.impl.config.ds.DataSourceProxyManager

@ThreadSafe
public final class DataSourceProxyManager
     
     
extends Object

Manager for connector implementations.


Method Summary
static DataSourceConnector getConnectorFor(String databaseId)
          Returns the first matching driver for a database identified by the given id.
static void register(DataSourceConnector connector)
          Registers the given connector.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

register

public static void register(DataSourceConnector connector)
Registers the given connector. A connector implementation should call this method to make itself known to data source connector manager.

Parameters:
connector - the new connector to be registered.

getConnectorFor

public static DataSourceConnector getConnectorFor(String databaseId)
                                           throws IllegalStateException
Returns the first matching driver for a database identified by the given id.

Parameters:
databaseId - the identifier of the database.
Returns:
a connector to interface with the given data source.
Throws:
IllegalStateException - if no suitable connector has been registered.


Copyright © 2012-2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.