@Factory public class DatasourceFactory extends Object
Constructor and Description |
---|
DatasourceFactory(io.micronaut.jdbc.DataSourceResolver dataSourceResolver)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
io.micronaut.jdbc.metadata.DataSourcePoolMetadata |
dbcpDataSourcePoolMetadata(DataSource dataSource)
Method to create a metadata object that allows pool value lookup for each datasource object.
|
public DatasourceFactory(@Nullable io.micronaut.jdbc.DataSourceResolver dataSourceResolver)
dataSourceResolver
- The data source resolver@EachBean(value=javax.sql.DataSource.class) public io.micronaut.jdbc.metadata.DataSourcePoolMetadata dbcpDataSourcePoolMetadata(DataSource dataSource)
dataSource
- The actual datasourceDataSourcePoolMetadataProvider