com.googlecode.jdbw.util
Class OneSharedConnectionDataSource.Factory

java.lang.Object
  extended by com.googlecode.jdbw.util.OneSharedConnectionDataSource.Factory
All Implemented Interfaces:
DataSourceFactory
Enclosing class:
OneSharedConnectionDataSource

public static class OneSharedConnectionDataSource.Factory
extends Object
implements DataSourceFactory


Constructor Summary
OneSharedConnectionDataSource.Factory()
           
 
Method Summary
 void close(DataSource previouslyConstructedDataSource)
          Closes a DataSource previously created by newDataSource on this object.
 DataSource newDataSource(String jdbcUrl, Properties properties)
          Creates a new DataSource using supplied connection configuration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OneSharedConnectionDataSource.Factory

public OneSharedConnectionDataSource.Factory()
Method Detail

newDataSource

public DataSource newDataSource(String jdbcUrl,
                                Properties properties)
Description copied from interface: DataSourceFactory
Creates a new DataSource using supplied connection configuration

Specified by:
newDataSource in interface DataSourceFactory
Parameters:
jdbcUrl - JDBC url to connect to
properties - Extra connection properties (should contain username and password, at least)
Returns:
DataSource implementation created from the supplied configuration

close

public void close(DataSource previouslyConstructedDataSource)
Description copied from interface: DataSourceFactory
Closes a DataSource previously created by newDataSource on this object.

Specified by:
close in interface DataSourceFactory
Parameters:
previouslyConstructedDataSource - Data source to close


Copyright © 2012. All Rights Reserved.