@Factory
public class DatasourceFactory
extends java.lang.Object
Constructor and Description |
---|
DatasourceFactory(DataSourceResolver dataSourceResolver)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
DataSourcePoolMetadata<org.apache.commons.dbcp2.BasicDataSource> |
dbcpDataSourcePoolMetadata(javax.sql.DataSource dataSource)
Method to create a metadata object that allows pool value lookup for each datasource object.
|
public DatasourceFactory(@Nullable DataSourceResolver dataSourceResolver)
dataSourceResolver
- The data source resolver@EachBean(value=javax.sql.DataSource.class) public DataSourcePoolMetadata<org.apache.commons.dbcp2.BasicDataSource> dbcpDataSourcePoolMetadata(javax.sql.DataSource dataSource)
dataSource
- The actual datasourceDataSourcePoolMetadata