public class DynamicPooledDataSourceInitializingBean extends Object implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean, DataSourceLocator
| Constructor and Description |
|---|
DynamicPooledDataSourceInitializingBean() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
void |
destroy() |
CommonDataSource |
getDataSource(String dataSourceKey) |
void |
setFactoryMap(Map<String,DataSourceFactory<?,?>> factoryMap) |
public DynamicPooledDataSourceInitializingBean()
public void setFactoryMap(Map<String,DataSourceFactory<?,?>> factoryMap)
public CommonDataSource getDataSource(String dataSourceKey)
getDataSource in interface DataSourceLocatorpublic void afterPropertiesSet()
throws SQLException,
ComponentPoolException
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanSQLExceptionComponentPoolExceptionpublic void destroy()
throws ComponentPoolException
destroy in interface org.springframework.beans.factory.DisposableBeanComponentPoolExceptionCopyright © 2017. All rights reserved.