SRJRCFrames
v0.1.296

de.schwarzrot.data.access.jdbc
Class DataSourceManager

java.lang.Object
  extended by de.schwarzrot.data.access.jdbc.DataSourceManager

public class DataSourceManager
extends Object

is responsible for managing a datasource for poolable jdbc-connections, where the jdbc-driver will be loaded at runtime.

Author:
Reinhard Mantey
See Also:
DriverConnectionFactory

Constructor Summary
DataSourceManager(DBConfig config)
          creates a datasource manager.
 
Method Summary
 DataSource getDataSource()
          accessor to datasource member
protected  void setupPool()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataSourceManager

public DataSourceManager(DBConfig config)
creates a datasource manager. Validates and loads jdbc-driver specified by config and sets up the pool of datasources to use

Parameters:
config - - datasource descriptor
Method Detail

getDataSource

public DataSource getDataSource()
accessor to datasource member

Returns:
- the datasource

setupPool

protected void setupPool()

SRJRCFrames
v0.1.296

hosted at
Find SRJRCFrames at SourceForge.net. Fast, secure and free:
           Open Source Software download
Submit a bug or request a feature

SRJRCFrames is published according to the GNU General Public License
Copyright 2005-2012 Reinhard Mantey - some rights reserved.