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, wait
createDataSource
public AbstractDSFactory(Class<? extends DataSource> dataSourceClass, String dataSourceName)
dataSourceClass
- 数据库连接池实现类,用于检测所提供的DataSource类是否存在,当传入的DataSource类不存在时抛出ClassNotFoundExceptiondataSourceName
- 数据源名称public String getDataSourceName()
DSFactory
getDataSourceName
in interface DSFactory
Copyright © 2025. All rights reserved.