Package io.micronaut.configuration.jdbi
Class JdbiFactory
java.lang.Object
io.micronaut.configuration.jdbi.JdbiFactory
Sets up Jdbi library integration.
- Since:
- 1.4.0
- Author:
- Dan Maas
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionjdbi
(DataSource dataSource, @Nullable TransactionHandler transactionHandler, @Nullable StatementBuilderFactory statementBuilderFactory, @Nullable JdbiCustomizer jdbiCustomizer) Creates a JdbiJdbi
instance.
-
Constructor Details
-
JdbiFactory
public JdbiFactory()
-
-
Method Details
-
jdbi
@EachBean(javax.sql.DataSource.class) public Jdbi jdbi(DataSource dataSource, @Parameter @Nullable @Nullable TransactionHandler transactionHandler, @Parameter @Nullable @Nullable StatementBuilderFactory statementBuilderFactory, @Parameter @Nullable @Nullable JdbiCustomizer jdbiCustomizer) Creates a JdbiJdbi
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- Parameters:
dataSource
- TheDataSource
transactionHandler
- TheTransactionHandler
statementBuilderFactory
- TheStatementBuilderFactory
jdbiCustomizer
- TheJdbiCustomizer
- Returns:
- The
Jdbi
instance
-