@Factory public class JdbiFactory extends Object
| Constructor and Description |
|---|
JdbiFactory() |
| Modifier and Type | Method and Description |
|---|---|
Jdbi |
jdbi(DataSource dataSource,
TransactionHandler transactionHandler,
StatementBuilderFactory statementBuilderFactory,
JdbiCustomizer jdbiCustomizer)
Creates a Jdbi
Jdbi instance. |
@EachBean(value=javax.sql.DataSource.class) public Jdbi jdbi(DataSource dataSource, @Parameter @Nullable TransactionHandler transactionHandler, @Parameter @Nullable StatementBuilderFactory statementBuilderFactory, @Parameter @Nullable JdbiCustomizer jdbiCustomizer)
Jdbi instance.
It will configure it with available Jdbi provider beans with the same qualifier.
Plugins will be installed automatically from the classpath using the ServiceLoader mechanism
dataSource - The DataSourcetransactionHandler - The TransactionHandlerstatementBuilderFactory - The StatementBuilderFactoryjdbiCustomizer - The JdbiCustomizerJdbi instance