public abstract class AbstractDSFactory extends Object implements DSFactory
| Constructor and Description |
|---|
AbstractDSFactory(Class<? extends DataSource> dataSourceClass,
String dataSourceName)
构造
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDataSourceName()
获取自定义的数据源名称,用于识别连接池
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateDataSourcepublic AbstractDSFactory(Class<? extends DataSource> dataSourceClass, String dataSourceName)
dataSourceClass - 数据库连接池实现类,用于检测所提供的DataSource类是否存在,当传入的DataSource类不存在时抛出ClassNotFoundExceptiondataSourceName - 数据源名称public String getDataSourceName()
DSFactorygetDataSourceName in interface DSFactoryCopyright © 2025. All rights reserved.