Class JdbiFactory


  • @Factory
    public class JdbiFactory
    extends java.lang.Object
    Sets up Jdbi library integration.
    Since:
    1.4.0
    Author:
    Dan Maas
    • Constructor Detail

      • JdbiFactory

        public JdbiFactory()
    • Method Detail

      • jdbi

        @EachBean(javax.sql.DataSource.class)
        public Jdbi jdbi​(javax.sql.DataSource dataSource,
                         @Parameter @Nullable
                         TransactionHandler transactionHandler,
                         @Parameter @Nullable
                         StatementBuilderFactory statementBuilderFactory,
                         @Parameter @Nullable
                         JdbiCustomizer jdbiCustomizer)
        Creates a Jdbi 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

        Parameters:
        dataSource - The DataSource
        transactionHandler - The TransactionHandler
        statementBuilderFactory - The StatementBuilderFactory
        jdbiCustomizer - The JdbiCustomizer
        Returns:
        The Jdbi instance