public class DynamicDataSourceProxy
extends org.springframework.jdbc.datasource.DelegatingDataSource
| Constructor and Description |
|---|
DynamicDataSourceProxy()
Default constructor.
|
DynamicDataSourceProxy(DataSource targetDataSource)
Create a new DynamicDataSourceProxy.
|
| Modifier and Type | Method and Description |
|---|---|
void |
switchDataSource(BoneCPConfig newConfig)
Switch to a new DataSource using the given configuration.
|
public DynamicDataSourceProxy(DataSource targetDataSource)
targetDataSource - the target DataSourcepublic DynamicDataSourceProxy()
public void switchDataSource(BoneCPConfig newConfig) throws SQLException
newConfig - BoneCP DataSource to use.SQLExceptionCopyright © 2009-2013 JolBox. All Rights Reserved.